@yarn-tool/npa-to-deps-query 3.0.1 → 3.0.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.2](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/npa-to-deps-query@3.0.1...@yarn-tool/npa-to-deps-query@3.0.2) (2024-05-03)
7
+
8
+
9
+
10
+ ### 🛠 Build System
11
+
12
+ * update typescript ([ffa656a](https://github.com/bluelovers/ws-yarn-workspaces/commit/ffa656aefe53966db445d52234eb0efe4651e3dd))
13
+
14
+
15
+
6
16
  ## [3.0.1](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/npa-to-deps-query@3.0.0...@yarn-tool/npa-to-deps-query@3.0.1) (2024-02-28)
7
17
 
8
18
  **Note:** Version bump only for package @yarn-tool/npa-to-deps-query
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.queryDepsValueByNpa = exports.queryDepsValueByNpaResult = void 0;
3
+ exports.queryDepsValueByNpaResult = queryDepsValueByNpaResult;
4
+ exports.queryDepsValueByNpa = queryDepsValueByNpa;
4
5
  const tslib_1 = require("tslib");
5
6
  const npa_to_deps_1 = require("@yarn-tool/npa-to-deps");
6
7
  const bluebird_1 = tslib_1.__importDefault(require("bluebird"));
@@ -26,7 +27,6 @@ function queryDepsValueByNpaResult(depsResult, options) {
26
27
  };
27
28
  });
28
29
  }
29
- exports.queryDepsValueByNpaResult = queryDepsValueByNpaResult;
30
30
  function queryDepsValueByNpa(input, options) {
31
31
  return bluebird_1.default.resolve()
32
32
  .then(() => {
@@ -42,6 +42,5 @@ function queryDepsValueByNpa(input, options) {
42
42
  });
43
43
  });
44
44
  }
45
- exports.queryDepsValueByNpa = queryDepsValueByNpa;
46
45
  exports.default = queryDepsValueByNpa;
47
46
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA,wDAKgC;AAChC,gEAAgC;AAEhC,gFAAsF;AAStF,SAAgB,yBAAyB,CAAC,UAAsC,EAAE,OAAkB;IAEnG,OAAO,kBAAQ,CAAC,OAAO,CAAC,UAAU,CAAC;SACjC,IAAI,CAAC,UAAU,CAAC,EAAE;;QAElB,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC7B,MAAM,QAAQ,GAAG,MAAA,UAAU,CAAC,QAAQ,mCAAI,EAAE,CAAC;QAE3C,IAAI,UAAU,CAAC,UAAU,EACzB,CAAC;YACA,OAAO,IAAA,oCAAqB,EAAC,UAAU,CAAC,IAAI,EAAE,MAAA,UAAU,CAAC,MAAM,mCAAI,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,CAAC;iBACpH,IAAI,CAAC,OAAO,CAAC,EAAE;gBAEf,OAAO;oBACN,IAAI;oBACJ,KAAK,EAAE,GAAG,QAAQ,GAAG,OAAO,EAAE;iBAC9B,CAAC;YACH,CAAC,CAAC,CAAA;QACJ,CAAC;QAED,OAAO;YACN,IAAI;YACJ,KAAK,EAAE,GAAG,QAAQ,GAAG,UAAU,CAAC,MAAM,EAAE;SACxC,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AAzBD,8DAyBC;AAED,SAAgB,mBAAmB,CAAC,KAAa,EAAE,OAAkB;IAEpE,OAAO,kBAAQ,CAAC,OAAO,EAAE;SACvB,IAAI,CAAC,GAAG,EAAE;QAEV,OAAO,IAAA,4BAAc,EAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IACtC,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QAEhB,OAAO,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC;aAC/C,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACb,OAAO;gBACN,GAAG,MAAM;gBACT,GAAG,GAAG;aACN,CAAA;QACF,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AAjBD,kDAiBC;AAED,kBAAe,mBAAmB,CAAA","sourcesContent":["import {\n\tnpaToDepsValue,\n\tnpaResultToDepsValue,\n\tIOptions as IOptionsDepsValue,\n\tIDepsResult,\n} from '@yarn-tool/npa-to-deps';\nimport Bluebird from 'bluebird';\nimport { ITSResolvable } from 'ts-type';\nimport { queryVersionWithCache } from '@yarn-tool/pkg-version-query/lib/queryVersion';\nimport { IOptionsQueryVersion } from '@yarn-tool/pkg-version-query/lib/types';\nimport { Options } from 'package-json';\n\nexport interface IOptions extends IOptionsDepsValue\n{\n\tqueryOptions?: IOptionsQueryVersion<Options>,\n}\n\nexport function queryDepsValueByNpaResult(depsResult: ITSResolvable<IDepsResult>, options?: IOptions)\n{\n\treturn Bluebird.resolve(depsResult)\n\t\t.then(depsResult =>\n\t\t{\n\t\t\tconst name = depsResult.name;\n\t\t\tconst operator = depsResult.operator ?? '';\n\n\t\t\tif (depsResult.fetchQuery)\n\t\t\t{\n\t\t\t\treturn queryVersionWithCache(depsResult.name, depsResult.semver ?? depsResult.result.fetchSpec, options?.queryOptions)\n\t\t\t\t\t.then(version =>\n\t\t\t\t\t{\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\tvalue: `${operator}${version}`,\n\t\t\t\t\t\t};\n\t\t\t\t\t})\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tname,\n\t\t\t\tvalue: `${operator}${depsResult.semver}`,\n\t\t\t};\n\t\t})\n}\n\nexport function queryDepsValueByNpa(input: string, options?: IOptions)\n{\n\treturn Bluebird.resolve()\n\t\t.then(() =>\n\t\t{\n\t\t\treturn npaToDepsValue(input, options)\n\t\t})\n\t\t.then((result) =>\n\t\t{\n\t\t\treturn queryDepsValueByNpaResult(result, options)\n\t\t\t\t.then((ret) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\t...ret,\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t})\n}\n\nexport default queryDepsValueByNpa\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAiBA,8DAyBC;AAED,kDAiBC;;AA7DD,wDAKgC;AAChC,gEAAgC;AAEhC,gFAAsF;AAStF,SAAgB,yBAAyB,CAAC,UAAsC,EAAE,OAAkB;IAEnG,OAAO,kBAAQ,CAAC,OAAO,CAAC,UAAU,CAAC;SACjC,IAAI,CAAC,UAAU,CAAC,EAAE;;QAElB,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC7B,MAAM,QAAQ,GAAG,MAAA,UAAU,CAAC,QAAQ,mCAAI,EAAE,CAAC;QAE3C,IAAI,UAAU,CAAC,UAAU,EACzB,CAAC;YACA,OAAO,IAAA,oCAAqB,EAAC,UAAU,CAAC,IAAI,EAAE,MAAA,UAAU,CAAC,MAAM,mCAAI,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,CAAC;iBACpH,IAAI,CAAC,OAAO,CAAC,EAAE;gBAEf,OAAO;oBACN,IAAI;oBACJ,KAAK,EAAE,GAAG,QAAQ,GAAG,OAAO,EAAE;iBAC9B,CAAC;YACH,CAAC,CAAC,CAAA;QACJ,CAAC;QAED,OAAO;YACN,IAAI;YACJ,KAAK,EAAE,GAAG,QAAQ,GAAG,UAAU,CAAC,MAAM,EAAE;SACxC,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAAa,EAAE,OAAkB;IAEpE,OAAO,kBAAQ,CAAC,OAAO,EAAE;SACvB,IAAI,CAAC,GAAG,EAAE;QAEV,OAAO,IAAA,4BAAc,EAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IACtC,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QAEhB,OAAO,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC;aAC/C,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACb,OAAO;gBACN,GAAG,MAAM;gBACT,GAAG,GAAG;aACN,CAAA;QACF,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,mBAAmB,CAAA","sourcesContent":["import {\n\tnpaToDepsValue,\n\tnpaResultToDepsValue,\n\tIOptions as IOptionsDepsValue,\n\tIDepsResult,\n} from '@yarn-tool/npa-to-deps';\nimport Bluebird from 'bluebird';\nimport { ITSResolvable } from 'ts-type';\nimport { queryVersionWithCache } from '@yarn-tool/pkg-version-query/lib/queryVersion';\nimport { IOptionsQueryVersion } from '@yarn-tool/pkg-version-query/lib/types';\nimport { Options } from 'package-json';\n\nexport interface IOptions extends IOptionsDepsValue\n{\n\tqueryOptions?: IOptionsQueryVersion<Options>,\n}\n\nexport function queryDepsValueByNpaResult(depsResult: ITSResolvable<IDepsResult>, options?: IOptions)\n{\n\treturn Bluebird.resolve(depsResult)\n\t\t.then(depsResult =>\n\t\t{\n\t\t\tconst name = depsResult.name;\n\t\t\tconst operator = depsResult.operator ?? '';\n\n\t\t\tif (depsResult.fetchQuery)\n\t\t\t{\n\t\t\t\treturn queryVersionWithCache(depsResult.name, depsResult.semver ?? depsResult.result.fetchSpec, options?.queryOptions)\n\t\t\t\t\t.then(version =>\n\t\t\t\t\t{\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\tvalue: `${operator}${version}`,\n\t\t\t\t\t\t};\n\t\t\t\t\t})\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tname,\n\t\t\t\tvalue: `${operator}${depsResult.semver}`,\n\t\t\t};\n\t\t})\n}\n\nexport function queryDepsValueByNpa(input: string, options?: IOptions)\n{\n\treturn Bluebird.resolve()\n\t\t.then(() =>\n\t\t{\n\t\t\treturn npaToDepsValue(input, options)\n\t\t})\n\t\t.then((result) =>\n\t\t{\n\t\t\treturn queryDepsValueByNpaResult(result, options)\n\t\t\t\t.then((ret) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\t...ret,\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t})\n}\n\nexport default queryDepsValueByNpa\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarn-tool/npa-to-deps-query",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "yarn",
@@ -52,8 +52,8 @@
52
52
  "tsc:showConfig": "ynpx get-current-tsconfig -p"
53
53
  },
54
54
  "dependencies": {
55
- "@yarn-tool/npa-to-deps": "^3.0.0",
56
- "@yarn-tool/pkg-version-query": "^3.0.1",
55
+ "@yarn-tool/npa-to-deps": "^3.0.1",
56
+ "@yarn-tool/pkg-version-query": "^3.0.2",
57
57
  "bluebird": "^3.7.2",
58
58
  "package-json": "<7 >=6.5",
59
59
  "ts-type": "^3.0.1",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "920c374dcedfbddfb32ae1f1f14033deefd2f80f"
66
+ "gitHead": "089606f66f3c5501a8f3fdfc42e5a85b57f4d0e9"
67
67
  }