@intlayer/webpack 5.5.2 → 5.5.3
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/dist/cjs/utils.cjs
CHANGED
|
@@ -32,13 +32,13 @@ __export(utils_exports, {
|
|
|
32
32
|
getFileHash: () => getFileHash
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(utils_exports);
|
|
35
|
+
var import_config = require("@intlayer/config");
|
|
36
|
+
var import_crypto_js = __toESM(require("crypto-js"));
|
|
35
37
|
var import_path = __toESM(require("path"));
|
|
36
38
|
var import_url = require("url");
|
|
37
|
-
var import_crypto_js = __toESM(require("crypto-js"));
|
|
38
39
|
const import_meta = {};
|
|
39
40
|
const defineDirname = () => {
|
|
40
|
-
const
|
|
41
|
-
const filename = isESModule ? (0, import_url.fileURLToPath)(import_meta.url) : require("url").pathToFileURL(__filename).toString();
|
|
41
|
+
const filename = import_config.isESModule ? (0, import_url.fileURLToPath)(import_meta.url) : require("url").pathToFileURL(__filename).toString();
|
|
42
42
|
globalThis.__filename = globalThis.__filename ?? filename;
|
|
43
43
|
globalThis.__dirname = globalThis.__dirname ?? import_path.default.dirname(__filename);
|
|
44
44
|
};
|
package/dist/cjs/utils.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["../../src/utils.ts"],"sourcesContent":["import { isESModule } from '@intlayer/config';\nimport crypto from 'crypto-js';\nimport path from 'path';\nimport { fileURLToPath } from 'url';\n\n/**\n * Set the __dirname global variable to make the config work in both ESM and CJS environments\n */\nexport const defineDirname = () => {\n const filename = isESModule\n ? fileURLToPath(import.meta.url)\n : require('url').pathToFileURL(__filename).toString();\n\n globalThis.__filename = globalThis.__filename ?? filename;\n globalThis.__dirname = globalThis.__dirname ?? path.dirname(__filename);\n};\n\nexport const getFileHash = (filePath: string) => {\n const hash = crypto.SHA3(filePath);\n\n return hash\n .toString(crypto.enc.Base64)\n .replace(/[^A-Z\\d]/gi, '')\n .substring(0, 20);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAC3B,uBAAmB;AACnB,kBAAiB;AACjB,iBAA8B;AAH9B;AAQO,MAAM,gBAAgB,MAAM;AACjC,QAAM,WAAW,+BACb,0BAAc,YAAY,GAAG,IAC7B,QAAQ,KAAK,EAAE,cAAc,UAAU,EAAE,SAAS;AAEtD,aAAW,aAAa,WAAW,cAAc;AACjD,aAAW,YAAY,WAAW,aAAa,YAAAA,QAAK,QAAQ,UAAU;AACxE;AAEO,MAAM,cAAc,CAAC,aAAqB;AAC/C,QAAM,OAAO,iBAAAC,QAAO,KAAK,QAAQ;AAEjC,SAAO,KACJ,SAAS,iBAAAA,QAAO,IAAI,MAAM,EAC1B,QAAQ,cAAc,EAAE,EACxB,UAAU,GAAG,EAAE;AACpB;","names":["path","crypto"]}
|
package/dist/esm/utils.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isESModule } from "@intlayer/config";
|
|
2
|
+
import crypto from "crypto-js";
|
|
1
3
|
import path from "path";
|
|
2
4
|
import { fileURLToPath } from "url";
|
|
3
|
-
import crypto from "crypto-js";
|
|
4
5
|
const defineDirname = () => {
|
|
5
|
-
const isESModule = typeof import.meta.url === "string";
|
|
6
6
|
const filename = isESModule ? fileURLToPath(import.meta.url) : require("url").pathToFileURL(__filename).toString();
|
|
7
7
|
globalThis.__filename = globalThis.__filename ?? filename;
|
|
8
8
|
globalThis.__dirname = globalThis.__dirname ?? path.dirname(__filename);
|
package/dist/esm/utils.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["../../src/utils.ts"],"sourcesContent":["import { isESModule } from '@intlayer/config';\nimport crypto from 'crypto-js';\nimport path from 'path';\nimport { fileURLToPath } from 'url';\n\n/**\n * Set the __dirname global variable to make the config work in both ESM and CJS environments\n */\nexport const defineDirname = () => {\n const filename = isESModule\n ? fileURLToPath(import.meta.url)\n : require('url').pathToFileURL(__filename).toString();\n\n globalThis.__filename = globalThis.__filename ?? filename;\n globalThis.__dirname = globalThis.__dirname ?? path.dirname(__filename);\n};\n\nexport const getFileHash = (filePath: string) => {\n const hash = crypto.SHA3(filePath);\n\n return hash\n .toString(crypto.enc.Base64)\n .replace(/[^A-Z\\d]/gi, '')\n .substring(0, 20);\n};\n"],"mappings":"AAAA,SAAS,kBAAkB;AAC3B,OAAO,YAAY;AACnB,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAKvB,MAAM,gBAAgB,MAAM;AACjC,QAAM,WAAW,aACb,cAAc,YAAY,GAAG,IAC7B,QAAQ,KAAK,EAAE,cAAc,UAAU,EAAE,SAAS;AAEtD,aAAW,aAAa,WAAW,cAAc;AACjD,aAAW,YAAY,WAAW,aAAa,KAAK,QAAQ,UAAU;AACxE;AAEO,MAAM,cAAc,CAAC,aAAqB;AAC/C,QAAM,OAAO,OAAO,KAAK,QAAQ;AAEjC,SAAO,KACJ,SAAS,OAAO,IAAI,MAAM,EAC1B,QAAQ,cAAc,EAAE,EACxB,UAAU,GAAG,EAAE;AACpB;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,aAAa,YAOzB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,WAO3C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/webpack",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Webpack plugin for seamless integration with Intlayer, enhancing JavaScript apps built with React, Next.js and more.",
|
|
6
6
|
"keywords": [
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"fast-glob": "^3.3.3",
|
|
62
62
|
"webpack": "^5.98.0",
|
|
63
63
|
"webpack-dev-server": "^5.2.0",
|
|
64
|
-
"@intlayer/chokidar": "5.5.
|
|
65
|
-
"@intlayer/config": "5.5.
|
|
64
|
+
"@intlayer/chokidar": "5.5.3",
|
|
65
|
+
"@intlayer/config": "5.5.3"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@changesets/cli": "2.28.1",
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
"tsc-alias": "^1.8.11",
|
|
77
77
|
"tsup": "^8.4.0",
|
|
78
78
|
"typescript": "^5.8.2",
|
|
79
|
+
"@utils/eslint-config": "1.0.4",
|
|
79
80
|
"@utils/ts-config": "1.0.4",
|
|
80
81
|
"@utils/ts-config-types": "1.0.4",
|
|
81
|
-
"@utils/tsup-config": "1.0.4"
|
|
82
|
-
"@utils/eslint-config": "1.0.4"
|
|
82
|
+
"@utils/tsup-config": "1.0.4"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"webpack": "^5.96.1",
|
|
86
|
-
"@intlayer/
|
|
87
|
-
"@intlayer/config": "5.5.
|
|
88
|
-
"@intlayer/
|
|
86
|
+
"@intlayer/chokidar": "5.5.3",
|
|
87
|
+
"@intlayer/config": "5.5.3",
|
|
88
|
+
"@intlayer/api": "5.5.3"
|
|
89
89
|
},
|
|
90
90
|
"engines": {
|
|
91
91
|
"node": ">=14.18"
|