@weapp-core/shared 2.0.0 → 2.0.1
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/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.4.2_postcss@8.5.5_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.4.2_postcss@8.5.5_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
"use strict";
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -408,7 +408,7 @@ function removeExtension(file) {
|
|
|
408
408
|
return file.replace(/\.[^/.]+$/, "");
|
|
409
409
|
}
|
|
410
410
|
function removeExtensionDeep(file) {
|
|
411
|
-
return file.replace(
|
|
411
|
+
return file.replace(/(\.[^/.]+)+$/, "");
|
|
412
412
|
}
|
|
413
413
|
function addExtension(filename, ext = ".js") {
|
|
414
414
|
let result = `${filename}`;
|
package/dist/index.js
CHANGED
|
@@ -27,11 +27,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.4.2_postcss@8.5.5_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
import path from "path";
|
|
32
32
|
import { fileURLToPath } from "url";
|
|
33
33
|
var init_esm_shims = __esm({
|
|
34
|
-
"../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.
|
|
34
|
+
"../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.4.2_postcss@8.5.5_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js"() {
|
|
35
35
|
"use strict";
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -388,7 +388,7 @@ function removeExtension(file) {
|
|
|
388
388
|
return file.replace(/\.[^/.]+$/, "");
|
|
389
389
|
}
|
|
390
390
|
function removeExtensionDeep(file) {
|
|
391
|
-
return file.replace(
|
|
391
|
+
return file.replace(/(\.[^/.]+)+$/, "");
|
|
392
392
|
}
|
|
393
393
|
function addExtension(filename, ext = ".js") {
|
|
394
394
|
let result = `${filename}`;
|