@rushstack/loader-raw-script 1.5.14 → 1.6.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.json +17 -0
- package/CHANGELOG.md +8 -1
- package/lib-esm/RawScriptLoader.js +16 -0
- package/lib-esm/RawScriptLoader.js.map +1 -0
- package/lib-esm/index.js +4 -0
- package/lib-esm/index.js.map +1 -0
- package/package.json +27 -5
- /package/{lib → lib-commonjs}/RawScriptLoader.js +0 -0
- /package/{lib → lib-commonjs}/RawScriptLoader.js.map +0 -0
- /package/{lib → lib-commonjs}/index.js +0 -0
- /package/{lib → lib-commonjs}/index.js.map +0 -0
- /package/{lib → lib-dts}/RawScriptLoader.d.ts +0 -0
- /package/{lib → lib-dts}/RawScriptLoader.d.ts.map +0 -0
- /package/{lib → lib-dts}/index.d.ts +0 -0
- /package/{lib → lib-dts}/index.d.ts.map +0 -0
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/loader-raw-script",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "1.6.0",
|
|
6
|
+
"tag": "@rushstack/loader-raw-script_v1.6.0",
|
|
7
|
+
"date": "Thu, 19 Feb 2026 00:04:53 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`."
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"dependency": [
|
|
15
|
+
{
|
|
16
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `1.2.0`"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
4
21
|
{
|
|
5
22
|
"version": "1.5.14",
|
|
6
23
|
"tag": "@rushstack/loader-raw-script_v1.5.14",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @rushstack/loader-raw-script
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 19 Feb 2026 00:04:53 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 1.6.0
|
|
6
|
+
Thu, 19 Feb 2026 00:04:53 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `"exports"` field in `package.json`.
|
|
4
11
|
|
|
5
12
|
## 1.5.14
|
|
6
13
|
Sat, 07 Feb 2026 01:13:26 GMT
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
import { EOL } from 'node:os';
|
|
4
|
+
const loaderFn = (content) => {
|
|
5
|
+
content = content.replace(/\\/g, '\\\\');
|
|
6
|
+
content = content.replace(/'/g, "\\'");
|
|
7
|
+
content = content.replace(/\n/g, '\\n');
|
|
8
|
+
content = content.replace(/\r/g, '\\r');
|
|
9
|
+
const lines = [
|
|
10
|
+
'(function (global) {',
|
|
11
|
+
` eval('${content}');`,
|
|
12
|
+
'}.call(exports, (function() { return this; }())))'
|
|
13
|
+
];
|
|
14
|
+
return lines.join(EOL);
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=RawScriptLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RawScriptLoader.js","sourceRoot":"","sources":["../src/RawScriptLoader.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,2DAA2D;AAE3D,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAE9B,MAAM,QAAQ,GAAgC,CAAC,OAAe,EAAE,EAAE;IAChE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACzC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAExC,MAAM,KAAK,GAAa;QACtB,sBAAsB;QACtB,WAAW,OAAO,KAAK;QACvB,mDAAmD;KACpD,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport { EOL } from 'node:os';\n\nconst loaderFn: (content: string) => string = (content: string) => {\n content = content.replace(/\\\\/g, '\\\\\\\\');\n content = content.replace(/'/g, \"\\\\'\");\n content = content.replace(/\\n/g, '\\\\n');\n content = content.replace(/\\r/g, '\\\\r');\n\n const lines: string[] = [\n '(function (global) {',\n ` eval('${content}');`,\n '}.call(exports, (function() { return this; }())))'\n ];\n\n return lines.join(EOL);\n};\n\nexport = loaderFn;\n"]}
|
package/lib-esm/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,2DAA2D;AAE3D,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport * as RawScriptLoader from './RawScriptLoader';\n\nexport = RawScriptLoader;\n"]}
|
package/package.json
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/loader-raw-script",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"
|
|
5
|
+
"main": "./lib-commonjs/index.js",
|
|
6
|
+
"module": "./lib-esm/index.js",
|
|
7
|
+
"types": "./lib-dts/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib-dts/index.d.ts",
|
|
11
|
+
"import": "./lib-esm/index.js",
|
|
12
|
+
"require": "./lib-commonjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./lib/*": {
|
|
15
|
+
"types": "./lib-dts/*.d.ts",
|
|
16
|
+
"import": "./lib-esm/*.js",
|
|
17
|
+
"require": "./lib-commonjs/*.js"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
"typesVersions": {
|
|
22
|
+
"*": {
|
|
23
|
+
"lib/*": [
|
|
24
|
+
"lib-dts/*"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
7
28
|
"license": "MIT",
|
|
8
29
|
"repository": {
|
|
9
30
|
"type": "git",
|
|
@@ -15,9 +36,10 @@
|
|
|
15
36
|
},
|
|
16
37
|
"devDependencies": {
|
|
17
38
|
"eslint": "~9.37.0",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
39
|
+
"local-node-rig": "1.0.0",
|
|
40
|
+
"@rushstack/heft": "1.2.0"
|
|
20
41
|
},
|
|
42
|
+
"sideEffects": false,
|
|
21
43
|
"scripts": {
|
|
22
44
|
"build": "heft build --clean",
|
|
23
45
|
"_phase:build": "heft run --only build -- --clean",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|