@intlayer/babel 7.1.4 → 7.1.5
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/package.json +4 -4
- package/dist/cjs/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/cjs/chokidar/dist/esm/utils/getFileHash.cjs +0 -12
- package/dist/cjs/chokidar/dist/esm/utils/getFileHash.cjs.map +0 -1
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs +0 -17
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs.map +0 -1
- package/dist/esm/_virtual/rolldown_runtime.mjs +0 -7
- package/dist/esm/chokidar/dist/esm/utils/getFileHash.mjs +0 -10
- package/dist/esm/chokidar/dist/esm/utils/getFileHash.mjs.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/babel",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Babel plugin for Intlayer that transforms declaration files and provides internationalization features during the build process according to the Intlayer configuration.",
|
|
6
6
|
"keywords": [
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"@babel/parser": "7.1.5",
|
|
81
81
|
"@babel/traverse": "7.28.0",
|
|
82
82
|
"@babel/types": "7.28.4",
|
|
83
|
-
"@intlayer/chokidar": "7.1.
|
|
84
|
-
"@intlayer/config": "7.1.
|
|
85
|
-
"@intlayer/types": "7.1.
|
|
83
|
+
"@intlayer/chokidar": "7.1.5",
|
|
84
|
+
"@intlayer/config": "7.1.5",
|
|
85
|
+
"@intlayer/types": "7.1.5",
|
|
86
86
|
"@types/babel__core": "7.20.5",
|
|
87
87
|
"@types/babel__generator": "7.27.0",
|
|
88
88
|
"@types/babel__traverse": "7.28.0"
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
|
|
25
|
-
exports.__toESM = __toESM;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let crypto_js = require("crypto-js");
|
|
3
|
-
crypto_js = require_rolldown_runtime.__toESM(crypto_js);
|
|
4
|
-
|
|
5
|
-
//#region ../chokidar/dist/esm/utils/getFileHash.mjs
|
|
6
|
-
const getFileHash = (filePath) => {
|
|
7
|
-
return crypto_js.default.SHA3(filePath).toString(crypto_js.default.enc.Base64).replace(/[^A-Z\d]/gi, "").substring(0, 20);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
exports.getFileHash = getFileHash;
|
|
12
|
-
//# sourceMappingURL=getFileHash.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFileHash.cjs","names":["crypto"],"sources":["../../../../../../../chokidar/dist/esm/utils/getFileHash.mjs"],"sourcesContent":["import crypto from \"crypto-js\";\n\n//#region src/utils/getFileHash.ts\nconst getFileHash = (filePath) => {\n\treturn crypto.SHA3(filePath).toString(crypto.enc.Base64).replace(/[^A-Z\\d]/gi, \"\").substring(0, 20);\n};\n\n//#endregion\nexport { getFileHash };\n//# sourceMappingURL=getFileHash.mjs.map"],"mappings":";;;;;AAGA,MAAM,eAAe,aAAa;AACjC,QAAOA,kBAAO,KAAK,SAAS,CAAC,SAASA,kBAAO,IAAI,OAAO,CAAC,QAAQ,cAAc,GAAG,CAAC,UAAU,GAAG,GAAG"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../config/dist/esm/utils/normalizePath.mjs
|
|
3
|
-
/**
|
|
4
|
-
* Normalize a path for glob by replacing backslashes with forward slashes
|
|
5
|
-
*
|
|
6
|
-
* Utils for Windows compatibility, as Glob pattern as `**\\*.js` is not supported
|
|
7
|
-
*
|
|
8
|
-
* C:\\Users\\John\\Desktop\\test.txt -> C:/Users/John/Desktop/test.txt
|
|
9
|
-
*
|
|
10
|
-
* @param path - The path to normalize
|
|
11
|
-
* @returns The normalized path
|
|
12
|
-
*/
|
|
13
|
-
const normalizePath = (path) => path.replace(/\\/g, "/");
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
exports.normalizePath = normalizePath;
|
|
17
|
-
//# sourceMappingURL=normalizePath.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizePath.cjs","names":[],"sources":["../../../../../../../config/dist/esm/utils/normalizePath.mjs"],"sourcesContent":["//#region src/utils/normalizePath.ts\n/**\n* Normalize a path for glob by replacing backslashes with forward slashes\n*\n* Utils for Windows compatibility, as Glob pattern as `**\\\\*.js` is not supported\n*\n* C:\\\\Users\\\\John\\\\Desktop\\\\test.txt -> C:/Users/John/Desktop/test.txt\n*\n* @param path - The path to normalize\n* @returns The normalized path\n*/\nconst normalizePath = (path) => path.replace(/\\\\/g, \"/\");\n\n//#endregion\nexport { normalizePath };\n//# sourceMappingURL=normalizePath.mjs.map"],"mappings":";;;;;;;;;;;;AAWA,MAAM,iBAAiB,SAAS,KAAK,QAAQ,OAAO,IAAI"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
3
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
4
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import crypto from "crypto-js";
|
|
2
|
-
|
|
3
|
-
//#region ../chokidar/dist/esm/utils/getFileHash.mjs
|
|
4
|
-
const getFileHash = (filePath) => {
|
|
5
|
-
return crypto.SHA3(filePath).toString(crypto.enc.Base64).replace(/[^A-Z\d]/gi, "").substring(0, 20);
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
//#endregion
|
|
9
|
-
export { getFileHash };
|
|
10
|
-
//# sourceMappingURL=getFileHash.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFileHash.mjs","names":[],"sources":["../../../../../../../chokidar/dist/esm/utils/getFileHash.mjs"],"sourcesContent":["import crypto from \"crypto-js\";\n\n//#region src/utils/getFileHash.ts\nconst getFileHash = (filePath) => {\n\treturn crypto.SHA3(filePath).toString(crypto.enc.Base64).replace(/[^A-Z\\d]/gi, \"\").substring(0, 20);\n};\n\n//#endregion\nexport { getFileHash };\n//# sourceMappingURL=getFileHash.mjs.map"],"mappings":";;;AAGA,MAAM,eAAe,aAAa;AACjC,QAAO,OAAO,KAAK,SAAS,CAAC,SAAS,OAAO,IAAI,OAAO,CAAC,QAAQ,cAAc,GAAG,CAAC,UAAU,GAAG,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|