@yarn-tool/npa-to-deps-query 2.0.15 → 3.0.0
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 +16 -0
- package/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.0](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/npa-to-deps-query@2.0.16...@yarn-tool/npa-to-deps-query@3.0.0) (2023-10-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @yarn-tool/npa-to-deps-query
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.16](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/npa-to-deps-query@2.0.15...@yarn-tool/npa-to-deps-query@2.0.16) (2022-12-09)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @yarn-tool/npa-to-deps-query
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.0.15](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/npa-to-deps-query@2.0.14...@yarn-tool/npa-to-deps-query@2.0.15) (2022-11-14)
|
|
7
23
|
|
|
8
24
|
|
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,EAA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ACtC,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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarn-tool/npa-to-deps-query",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
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": "^
|
|
56
|
-
"@yarn-tool/pkg-version-query": "^
|
|
55
|
+
"@yarn-tool/npa-to-deps": "^3.0.0",
|
|
56
|
+
"@yarn-tool/pkg-version-query": "^3.0.0",
|
|
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": "
|
|
66
|
+
"gitHead": "2b9ea5ea131c1852988b3270d38d594ad3e70559"
|
|
67
67
|
}
|