@alwatr/dedupe 1.0.9 → 1.0.10
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 +6 -0
- package/dist/main.cjs +2 -2
- package/dist/main.cjs.map +1 -1
- package/dist/main.mjs +2 -2
- package/dist/main.mjs.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.10](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.9...@alwatr/dedupe@1.0.10) (2024-08-31)
|
|
7
|
+
|
|
8
|
+
### Dependencies update
|
|
9
|
+
|
|
10
|
+
* update all dependencies ([1e0c30e](https://github.com/Alwatr/nanolib/commit/1e0c30e6a3a8e19deb5185814e24ab6c08dca573)) by @AliMD
|
|
11
|
+
|
|
6
12
|
## [1.0.9](https://github.com/Alwatr/nanolib/compare/@alwatr/dedupe@1.0.8...@alwatr/dedupe@1.0.9) (2024-07-04)
|
|
7
13
|
|
|
8
14
|
### Dependencies update
|
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.10 */
|
|
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.10");0&&(module.exports={definePackage,definedPackageList});
|
|
3
3
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.cjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
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,
|
|
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,QAAmB",
|
|
6
6
|
"names": ["main_exports", "__export", "definePackage", "definedPackageList", "__toCommonJS", "packageName", "version"]
|
|
7
7
|
}
|
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.10 */
|
|
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.10");export{t as definePackage,r as definedPackageList};
|
|
3
3
|
//# sourceMappingURL=main.mjs.map
|
package/dist/main.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
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,
|
|
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,QAAmB",
|
|
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.10",
|
|
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.8",
|
|
71
71
|
"@alwatr/prettier-config": "^1.0.4",
|
|
72
72
|
"@alwatr/tsconfig-base": "^1.2.0",
|
|
73
|
-
"@alwatr/type-helper": "^1.2.
|
|
74
|
-
"@types/node": "^
|
|
75
|
-
"typescript": "^5.5.
|
|
73
|
+
"@alwatr/type-helper": "^1.2.5",
|
|
74
|
+
"@types/node": "^22.5.1",
|
|
75
|
+
"typescript": "^5.5.4"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "5d81b77988089edb24aa6853d0a98fdeb85dbf77"
|
|
78
78
|
}
|