@alwatr/dedupe 1.0.4 → 1.0.6
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 +12 -2
- package/README.md +1 -1
- package/dist/main.cjs +2 -2
- package/dist/main.cjs.map +2 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/main.mjs +2 -2
- package/dist/main.mjs.map +2 -2
- package/package.json +7 -7
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
|
+
## [1.0.6](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.5...@alwatr/dedupe@1.0.6) (2024-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alwatr/dedupe
|
|
9
|
+
|
|
10
|
+
## [1.0.5](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.4...@alwatr/dedupe@1.0.5) (2024-01-31)
|
|
11
|
+
|
|
12
|
+
### Miscellaneous Chores
|
|
13
|
+
|
|
14
|
+
* **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @AliMD
|
|
15
|
+
|
|
6
16
|
## [1.0.4](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.3...@alwatr/dedupe@1.0.4) (2024-01-24)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @alwatr/dedupe
|
|
@@ -23,8 +33,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
23
33
|
|
|
24
34
|
### Bug Fixes
|
|
25
35
|
|
|
26
|
-
|
|
36
|
+
- `__package_version__` global type ([de8a3f9](https://github.com/Alwatr/nanolib/commit/de8a3f93bdb5a786c42f56324072b4b9520ce3a1)) by @
|
|
27
37
|
|
|
28
38
|
### Features
|
|
29
39
|
|
|
30
|
-
|
|
40
|
+
- **dedupe:** new package ([77fcdf6](https://github.com/Alwatr/nanolib/commit/77fcdf6fc8701910a7d503b7fba89fd284f36833)) by @
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ import {definePackage} from '@alwatr/dedupe';
|
|
|
10
10
|
definePackage('@alwatr/logger', '2.0.0');
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
You can use __package_version__ to automatically obtain the version of the package if you are using @alwatr/nano-build to build your package.
|
|
13
|
+
You can use `__package_version__` to automatically obtain the version of the package if you are using @alwatr/nano-build to build your package.
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
16
|
definePackage('@alwatr/logger', __package_version__);
|
package/dist/main.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @alwatr/dedupe v1.0.
|
|
2
|
-
"use strict";var _=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(e,r)=>{for(var t in r)_(e,t,{get:r[t],enumerable:!0})},f=(e,r,t,d)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of p(r))!c.call(e,i)&&i!==t&&_(e,i,{get:()=>r[i],enumerable:!(d=o(r,i))||d.enumerable});return e};var l=e=>f(_({},"__esModule",{value:!0}),e);var s={};u(s,{definePackage:()=>n,definedPackageList:()=>a});module.exports=l(s);if(typeof __dedupe__<"u")throw new Error("duplicate_dedupe");var a={};function n(e,r="v?"){if(e in a)throw new Error("duplicate_package",{cause:e});a[e]=r}n("@alwatr/dedupe","1.0.
|
|
1
|
+
/* @alwatr/dedupe v1.0.6 */
|
|
2
|
+
"use strict";var _=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(e,r)=>{for(var t in r)_(e,t,{get:r[t],enumerable:!0})},f=(e,r,t,d)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of p(r))!c.call(e,i)&&i!==t&&_(e,i,{get:()=>r[i],enumerable:!(d=o(r,i))||d.enumerable});return e};var l=e=>f(_({},"__esModule",{value:!0}),e);var s={};u(s,{definePackage:()=>n,definedPackageList:()=>a});module.exports=l(s);if(typeof __dedupe__<"u")throw new Error("duplicate_dedupe");var a={};function n(e,r="v?"){if(e in a)throw new Error("duplicate_package",{cause:e});a[e]=r}n("@alwatr/dedupe","1.0.6");0&&(module.exports={definePackage,definedPackageList});
|
|
3
3
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
|
-
"sourcesContent": ["import type {Dictionary} from '@alwatr/type-helper'
|
|
5
|
-
"mappings": ";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,EAAA,uBAAAC,IAAA,eAAAC,EAAAJ,GAUA,GAAI,OAAO,WAAe,IACxB,MAAM,IAAI,MAAM,kBAAkB,EAG7B,IAAMG,EAAyC,CAAC,EAYhD,SAASD,
|
|
4
|
+
"sourcesContent": ["import type {Dictionary} from '@alwatr/type-helper';\n\ndeclare global {\n // eslint-disable-next-line no-var\n var __dedupe__: true;\n\n // eslint-disable-next-line no-var\n var __package_version__: string;\n}\n\nif (typeof __dedupe__ !== 'undefined') {\n throw new Error('duplicate_dedupe');\n}\n\nexport const definedPackageList: Dictionary<string> = {};\n\n/**\n * Global define package for managing package versions to prevent version conflicts.\n * @param packageName package name including scope. e.g. `@scope/package-name`\n * @param version package version (optional)\n *\n * @example\n * ```typescript\n * definePackage('@scope/package-name', __package_version__);\n * ```\n */\nexport function definePackage(packageName: string, version = 'v?'): void {\n if (packageName in definedPackageList) {\n throw new Error('duplicate_package', {\n cause: packageName,\n });\n }\n\n definedPackageList[packageName] = version;\n}\n\ndefinePackage('@alwatr/dedupe', __package_version__);\n"],
|
|
5
|
+
"mappings": ";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,EAAA,uBAAAC,IAAA,eAAAC,EAAAJ,GAUA,GAAI,OAAO,WAAe,IACxB,MAAM,IAAI,MAAM,kBAAkB,EAG7B,IAAMG,EAAyC,CAAC,EAYhD,SAASD,EAAcG,EAAqBC,EAAU,KAAY,CACvE,GAAID,KAAeF,EACjB,MAAM,IAAI,MAAM,oBAAqB,CACnC,MAAOE,CACT,CAAC,EAGHF,EAAmBE,CAAW,EAAIC,CACpC,CAEAJ,EAAc,iBAAkB,OAAmB",
|
|
6
6
|
"names": ["main_exports", "__export", "definePackage", "definedPackageList", "__toCommonJS", "packageName", "version"]
|
|
7
7
|
}
|
package/dist/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,UAAU,EAAE,IAAI,CAAC;IAGrB,IAAI,mBAAmB,EAAE,MAAM,CAAC;CACjC;AAMD,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,MAAM,CAAM,CAAC;AAEzD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,SAAO,GAAG,IAAI,CAQvE"}
|
package/dist/main.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @alwatr/dedupe v1.0.
|
|
2
|
-
if(typeof __dedupe__<"u")throw new Error("duplicate_dedupe");var r={};function t(e,i="v?"){if(e in r)throw new Error("duplicate_package",{cause:e});r[e]=i}t("@alwatr/dedupe","1.0.
|
|
1
|
+
/* @alwatr/dedupe v1.0.6 */
|
|
2
|
+
if(typeof __dedupe__<"u")throw new Error("duplicate_dedupe");var r={};function t(e,i="v?"){if(e in r)throw new Error("duplicate_package",{cause:e});r[e]=i}t("@alwatr/dedupe","1.0.6");export{t as definePackage,r as definedPackageList};
|
|
3
3
|
//# sourceMappingURL=main.mjs.map
|
package/dist/main.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
|
-
"sourcesContent": ["import type {Dictionary} from '@alwatr/type-helper'
|
|
5
|
-
"mappings": ";AAUA,GAAI,OAAO,WAAe,IACxB,MAAM,IAAI,MAAM,kBAAkB,EAG7B,IAAMA,EAAyC,CAAC,EAYhD,SAASC,
|
|
4
|
+
"sourcesContent": ["import type {Dictionary} from '@alwatr/type-helper';\n\ndeclare global {\n // eslint-disable-next-line no-var\n var __dedupe__: true;\n\n // eslint-disable-next-line no-var\n var __package_version__: string;\n}\n\nif (typeof __dedupe__ !== 'undefined') {\n throw new Error('duplicate_dedupe');\n}\n\nexport const definedPackageList: Dictionary<string> = {};\n\n/**\n * Global define package for managing package versions to prevent version conflicts.\n * @param packageName package name including scope. e.g. `@scope/package-name`\n * @param version package version (optional)\n *\n * @example\n * ```typescript\n * definePackage('@scope/package-name', __package_version__);\n * ```\n */\nexport function definePackage(packageName: string, version = 'v?'): void {\n if (packageName in definedPackageList) {\n throw new Error('duplicate_package', {\n cause: packageName,\n });\n }\n\n definedPackageList[packageName] = version;\n}\n\ndefinePackage('@alwatr/dedupe', __package_version__);\n"],
|
|
5
|
+
"mappings": ";AAUA,GAAI,OAAO,WAAe,IACxB,MAAM,IAAI,MAAM,kBAAkB,EAG7B,IAAMA,EAAyC,CAAC,EAYhD,SAASC,EAAcC,EAAqBC,EAAU,KAAY,CACvE,GAAID,KAAeF,EACjB,MAAM,IAAI,MAAM,oBAAqB,CACnC,MAAOE,CACT,CAAC,EAGHF,EAAmBE,CAAW,EAAIC,CACpC,CAEAF,EAAc,iBAAkB,OAAmB",
|
|
6
6
|
"names": ["definedPackageList", "definePackage", "packageName", "version"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/dedupe",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "A package manager helper tool for debug list of defined (imported) packages in your ecosystem and prevent to duplicate import (install) multiple versions of the same package in your project (deduplicate packages).",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"keywords": [
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"clean": "rm -rfv dist *.tsbuildinfo"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@alwatr/nano-build": "^1.3.
|
|
70
|
+
"@alwatr/nano-build": "^1.3.4",
|
|
71
71
|
"@alwatr/prettier-config": "^1.0.4",
|
|
72
|
-
"@alwatr/tsconfig-base": "^1.1.
|
|
73
|
-
"@alwatr/type-helper": "^1.2.
|
|
74
|
-
"@types/node": "^20.11.
|
|
75
|
-
"typescript": "^5.
|
|
72
|
+
"@alwatr/tsconfig-base": "^1.1.2",
|
|
73
|
+
"@alwatr/type-helper": "^1.2.2",
|
|
74
|
+
"@types/node": "^20.11.30",
|
|
75
|
+
"typescript": "^5.4.3"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "df149736d1e85335aaeb9c547ff3bdd1161f9b33"
|
|
78
78
|
}
|