@ray-js/shared 1.5.40 → 1.5.42
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/lib/file.js +4 -5
- package/lib/path.js +1 -2
- package/package.json +6 -6
package/lib/file.js
CHANGED
|
@@ -3,14 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.writeFileSync = writeFileSync;
|
|
7
|
+
exports.searchJSFile = searchJSFile;
|
|
8
|
+
exports.requireJSFile = requireJSFile;
|
|
9
|
+
exports.replaceExtension = replaceExtension;
|
|
7
10
|
const fs_extra_1 = require("fs-extra");
|
|
8
11
|
const path_1 = __importDefault(require("path"));
|
|
9
12
|
const slash_1 = __importDefault(require("slash"));
|
|
10
13
|
function writeFileSync(...params) {
|
|
11
14
|
(0, fs_extra_1.outputFileSync)(...params);
|
|
12
15
|
}
|
|
13
|
-
exports.writeFileSync = writeFileSync;
|
|
14
16
|
function searchJSFile(fileName, options) {
|
|
15
17
|
const { cwd, extensions = ['.ts', '.js'] } = options;
|
|
16
18
|
for (const extension of extensions) {
|
|
@@ -20,7 +22,6 @@ function searchJSFile(fileName, options) {
|
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
|
-
exports.searchJSFile = searchJSFile;
|
|
24
25
|
function requireJSFile(file, specifier = 'default') {
|
|
25
26
|
if (!path_1.default.isAbsolute(file)) {
|
|
26
27
|
throw new Error('require(file) must be absolute path');
|
|
@@ -48,8 +49,6 @@ function requireJSFile(file, specifier = 'default') {
|
|
|
48
49
|
console.error('requireJSFile load failed:', file);
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
exports.requireJSFile = requireJSFile;
|
|
52
52
|
function replaceExtension(file, ext = '') {
|
|
53
53
|
return file.replace(path_1.default.extname(file), ext);
|
|
54
54
|
}
|
|
55
|
-
exports.replaceExtension = replaceExtension;
|
package/lib/path.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.resolvePath =
|
|
26
|
+
exports.resolvePath = resolvePath;
|
|
27
27
|
const path = __importStar(require("path"));
|
|
28
28
|
function resolvePath(paths, options) {
|
|
29
29
|
const isAbsolute = path.isAbsolute(paths[0]);
|
|
@@ -31,4 +31,3 @@ function resolvePath(paths, options) {
|
|
|
31
31
|
const p = paths.join(path.sep);
|
|
32
32
|
return isAbsolute ? path.resolve(p) : path.resolve(cwd, p);
|
|
33
33
|
}
|
|
34
|
-
exports.resolvePath = resolvePath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/shared",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.42",
|
|
4
4
|
"description": "Ray shared (Node Client)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"watch": "tsc -p ./tsconfig.build.json --watch"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@babel/preset-env": "^7.
|
|
27
|
-
"@babel/preset-typescript": "^7.
|
|
28
|
-
"@babel/register": "^7.
|
|
29
|
-
"@ray-js/types": "1.5.
|
|
26
|
+
"@babel/preset-env": "^7.26.0",
|
|
27
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
28
|
+
"@babel/register": "^7.25.9",
|
|
29
|
+
"@ray-js/types": "1.5.42",
|
|
30
30
|
"change-case": "^4.1.2",
|
|
31
31
|
"fs-extra": "^10.1.0",
|
|
32
32
|
"merge": "^2.1.1",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"access": "public",
|
|
42
42
|
"registry": "https://registry.npmjs.com"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "3694e85574ec5b7d92cf7d2df362926adf5a03cd"
|
|
45
45
|
}
|