@pnpm/default-resolver 13.0.4 → 13.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -9,11 +9,11 @@ const local_resolver_1 = __importDefault(require("@pnpm/local-resolver"));
9
9
  const npm_resolver_1 = __importDefault(require("@pnpm/npm-resolver"));
10
10
  const tarball_resolver_1 = __importDefault(require("@pnpm/tarball-resolver"));
11
11
  function createResolver(fetchFromRegistry, getCredentials, pnpmOpts) {
12
- const resolveFromNpm = npm_resolver_1.default(fetchFromRegistry, getCredentials, pnpmOpts);
13
- const resolveFromGit = git_resolver_1.default(pnpmOpts);
12
+ const resolveFromNpm = (0, npm_resolver_1.default)(fetchFromRegistry, getCredentials, pnpmOpts);
13
+ const resolveFromGit = (0, git_resolver_1.default)(pnpmOpts);
14
14
  return async (wantedDependency, opts) => {
15
15
  var _a, _b, _c, _d;
16
- const resolution = (_a = await resolveFromNpm(wantedDependency, opts)) !== null && _a !== void 0 ? _a : (wantedDependency.pref && ((_c = (_b = await tarball_resolver_1.default(wantedDependency)) !== null && _b !== void 0 ? _b : await resolveFromGit(wantedDependency)) !== null && _c !== void 0 ? _c : await local_resolver_1.default(wantedDependency, opts)));
16
+ const resolution = (_a = await resolveFromNpm(wantedDependency, opts)) !== null && _a !== void 0 ? _a : (wantedDependency.pref && ((_c = (_b = await (0, tarball_resolver_1.default)(wantedDependency)) !== null && _b !== void 0 ? _b : await resolveFromGit(wantedDependency)) !== null && _c !== void 0 ? _c : await (0, local_resolver_1.default)(wantedDependency, opts)));
17
17
  if (!resolution) {
18
18
  throw new error_1.default('SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER', `${wantedDependency.alias ? wantedDependency.alias + '@' : ''}${(_d = wantedDependency.pref) !== null && _d !== void 0 ? _d : ''} isn't supported by any available resolver.`);
19
19
  }
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAmC;AAEnC,sEAAqD;AACrD,0EAAmD;AACnD,sEAK2B;AAE3B,8EAAuD;AASvD,SAAwB,cAAc,CACpC,iBAAoC,EACpC,cAA8B,EAC9B,QAAgC;IAEhC,MAAM,cAAc,GAAG,sBAAoB,CAAC,iBAAiB,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAA;IACxF,MAAM,cAAc,GAAG,sBAAoB,CAAC,QAAQ,CAAC,CAAA;IACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE;;QACtC,MAAM,UAAU,GAAG,MAAA,MAAM,cAAc,CAAC,gBAAgB,EAAE,IAA6B,CAAC,mCACtF,CAAC,gBAAgB,CAAC,IAAI,IAAI,CACxB,MAAA,MAAA,MAAM,0BAAkB,CAAC,gBAAkC,CAAC,mCAC5D,MAAM,cAAc,CAAC,gBAAkC,CAAC,mCACxD,MAAM,wBAAgB,CAAC,gBAAkC,EAAE,IAAI,CAAC,CACjE,CAAC,CAAA;QACJ,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,eAAS,CACjB,oCAAoC,EACpC,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,MAAA,gBAAgB,CAAC,IAAI,mCAAI,EAAE,6CAA6C,CAAC,CAAA;SAC5I;QACD,OAAO,UAAU,CAAA;IACnB,CAAC,CAAA;AACH,CAAC;AArBD,iCAqBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAmC;AAEnC,sEAAqD;AACrD,0EAAmD;AACnD,sEAK2B;AAE3B,8EAAuD;AASvD,SAAwB,cAAc,CACpC,iBAAoC,EACpC,cAA8B,EAC9B,QAAgC;IAEhC,MAAM,cAAc,GAAG,IAAA,sBAAoB,EAAC,iBAAiB,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAA;IACxF,MAAM,cAAc,GAAG,IAAA,sBAAoB,EAAC,QAAQ,CAAC,CAAA;IACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE;;QACtC,MAAM,UAAU,GAAG,MAAA,MAAM,cAAc,CAAC,gBAAgB,EAAE,IAA6B,CAAC,mCACtF,CAAC,gBAAgB,CAAC,IAAI,IAAI,CACxB,MAAA,MAAA,MAAM,IAAA,0BAAkB,EAAC,gBAAkC,CAAC,mCAC5D,MAAM,cAAc,CAAC,gBAAkC,CAAC,mCACxD,MAAM,IAAA,wBAAgB,EAAC,gBAAkC,EAAE,IAAI,CAAC,CACjE,CAAC,CAAA;QACJ,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,eAAS,CACjB,oCAAoC,EACpC,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,MAAA,gBAAgB,CAAC,IAAI,mCAAI,EAAE,6CAA6C,CAAC,CAAA;SAC5I;QACD,OAAO,UAAU,CAAA;IACnB,CAAC,CAAA;AACH,CAAC;AArBD,iCAqBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/default-resolver",
3
- "version": "13.0.4",
3
+ "version": "13.0.8",
4
4
  "description": "pnpm's default package resolver",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "repository": "https://github.com/pnpm/pnpm/blob/master/packages/default-resolver",
15
15
  "keywords": [
16
+ "pnpm6",
16
17
  "pnpm",
17
18
  "resolver",
18
19
  "npm"
@@ -24,20 +25,20 @@
24
25
  "homepage": "https://github.com/pnpm/pnpm/blob/master/packages/default-resolver#readme",
25
26
  "dependencies": {
26
27
  "@pnpm/error": "2.0.0",
27
- "@pnpm/fetching-types": "2.2.0",
28
- "@pnpm/git-resolver": "5.1.3",
28
+ "@pnpm/fetching-types": "2.2.1",
29
+ "@pnpm/git-resolver": "5.1.6",
29
30
  "@pnpm/local-resolver": "6.1.0",
30
- "@pnpm/npm-resolver": "12.0.3",
31
+ "@pnpm/npm-resolver": "12.0.5",
31
32
  "@pnpm/resolver-base": "8.0.4",
32
33
  "@pnpm/tarball-resolver": "5.0.4"
33
34
  },
34
35
  "devDependencies": {
35
- "@pnpm/fetch": "4.1.0",
36
+ "@pnpm/fetch": "4.1.2",
36
37
  "@pnpm/logger": "^4.0.0"
37
38
  },
38
39
  "funding": "https://opencollective.com/pnpm",
39
40
  "scripts": {
40
- "lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
41
+ "lint": "eslint src/**/*.ts test/**/*.ts",
41
42
  "_test": "jest",
42
43
  "test": "pnpm run compile && pnpm run _test",
43
44
  "compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"