Skip to content

Commit

Permalink
fix(ruleset-bundler): address Rollup.js warning
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed Sep 6, 2022
1 parent 776a1fc commit 1e36673
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
8 changes: 4 additions & 4 deletions packages/ruleset-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@
"release": "semantic-release -e semantic-release-monorepo"
},
"dependencies": {
"@rollup/plugin-commonjs": "~22.0.0",
"@rollup/plugin-commonjs": "~22.0.2",
"@stoplight/path": "1.3.2",
"@stoplight/spectral-core": ">=1",
"@stoplight/spectral-formats": ">=1",
"@stoplight/spectral-functions": ">=1",
"@stoplight/spectral-parsers": ">=1",
"@stoplight/spectral-ref-resolver": ">=1",
"@stoplight/spectral-ruleset-migrator": "^1.5.2",
"@stoplight/spectral-ruleset-migrator": "^1.7.4",
"@stoplight/spectral-rulesets": ">=1",
"@stoplight/spectral-runtime": "^1.1.0",
"@stoplight/types": "^12.3.0",
"@stoplight/types": "^13.6.0",
"@types/node": "*",
"pony-cause": "1.1.1",
"rollup": "~2.75.5",
"rollup": "~2.79.0",
"tslib": "^2.3.1",
"validate-npm-package-name": "3.0.0"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/ruleset-bundler/src/plugins/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import type { IO } from '../types';

export const url = ({ fetch }: IO): Plugin => ({
name: '@stoplight-spectral/url',
async resolveId(id, importer) {
async resolveId(id, importer, opts): Promise<string | undefined> {
const resolved = await this.resolve(id, importer, {
...opts,
skipSelf: true,
});

Expand All @@ -32,7 +33,7 @@ export const url = ({ fetch }: IO): Plugin => ({

return;
},
async load(id) {
async load(id): Promise<string | undefined> {
if (!isURL(id)) return;
const res = await fetch(id);
if (!res.ok) {
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2235,9 +2235,9 @@ __metadata:
languageName: node
linkType: hard

"@rollup/plugin-commonjs@npm:~22.0.0":
version: 22.0.0
resolution: "@rollup/plugin-commonjs@npm:22.0.0"
"@rollup/plugin-commonjs@npm:~22.0.2":
version: 22.0.2
resolution: "@rollup/plugin-commonjs@npm:22.0.2"
dependencies:
"@rollup/pluginutils": ^3.1.0
commondir: ^1.0.1
Expand All @@ -2248,7 +2248,7 @@ __metadata:
resolve: ^1.17.0
peerDependencies:
rollup: ^2.68.0
checksum: fdcce2bf58875fde0e06f001544c0d9a0509a12929393862f72dcef8fcbf4d5d0ba0d5db6cf10ba4351335caf67a3dbdb95000678c468585e3972994f92e2ce9
checksum: 70098a4b91afe3f164f5d27cba65edf148c5ed146ee0e07a964b66940681553ac77391083114cdcf9427e7f2706bf0d61eab310b3a2caeab83b7452c0292fcae
languageName: node
linkType: hard

Expand Down Expand Up @@ -2649,30 +2649,30 @@ __metadata:
version: 0.0.0-use.local
resolution: "@stoplight/spectral-ruleset-bundler@workspace:packages/ruleset-bundler"
dependencies:
"@rollup/plugin-commonjs": ~22.0.0
"@rollup/plugin-commonjs": ~22.0.2
"@stoplight/path": 1.3.2
"@stoplight/spectral-core": ">=1"
"@stoplight/spectral-formats": ">=1"
"@stoplight/spectral-functions": ">=1"
"@stoplight/spectral-parsers": ">=1"
"@stoplight/spectral-ref-resolver": ">=1"
"@stoplight/spectral-ruleset-migrator": ^1.5.2
"@stoplight/spectral-ruleset-migrator": ^1.7.4
"@stoplight/spectral-rulesets": ">=1"
"@stoplight/spectral-runtime": ^1.1.0
"@stoplight/types": ^12.3.0
"@stoplight/types": ^13.6.0
"@types/node": "*"
"@types/validate-npm-package-name": ^3.0.3
fetch-mock: ^9.11.0
memfs: ^3.3.0
pony-cause: 1.1.1
prettier: ^2.4.1
rollup: ~2.75.5
rollup: ~2.79.0
tslib: ^2.3.1
validate-npm-package-name: 3.0.0
languageName: unknown
linkType: soft

"@stoplight/spectral-ruleset-migrator@^1.5.0, @stoplight/spectral-ruleset-migrator@^1.5.2, @stoplight/spectral-ruleset-migrator@workspace:packages/ruleset-migrator":
"@stoplight/spectral-ruleset-migrator@^1.5.0, @stoplight/spectral-ruleset-migrator@^1.7.4, @stoplight/spectral-ruleset-migrator@workspace:packages/ruleset-migrator":
version: 0.0.0-use.local
resolution: "@stoplight/spectral-ruleset-migrator@workspace:packages/ruleset-migrator"
dependencies:
Expand Down Expand Up @@ -11545,17 +11545,17 @@ __metadata:
languageName: node
linkType: hard

"rollup@npm:~2.75.5":
version: 2.75.5
resolution: "rollup@npm:2.75.5"
"rollup@npm:~2.79.0":
version: 2.79.0
resolution: "rollup@npm:2.79.0"
dependencies:
fsevents: ~2.3.2
dependenciesMeta:
fsevents:
optional: true
bin:
rollup: dist/bin/rollup
checksum: fa3e61959efbc88cda75315dc22f035489be9dda3ae7d45a3a474f19efc3661ef6f9849486c7ca51e1a3e2aedef91f4e3223e8123bbeaf155913533d071994d1
checksum: 166f1ffea1898e157003920065b3a328e7012ea6808860ee8fe5d1ce94804fcce9985c95a3c0f7fe9c611aff0d09a70f073f1d6f715c8faba28e4e40f71ee3bb
languageName: node
linkType: hard

Expand Down

0 comments on commit 1e36673

Please sign in to comment.