awilix 13.0.1 → 13.0.3-alpha.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/lib/awilix.browser.mjs
CHANGED
|
@@ -513,6 +513,23 @@ function isFunction(val) {
|
|
|
513
513
|
return typeof val === 'function';
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
+
var loadModuleNative = {};
|
|
517
|
+
|
|
518
|
+
var hasRequiredLoadModuleNative;
|
|
519
|
+
|
|
520
|
+
function requireLoadModuleNative () {
|
|
521
|
+
if (hasRequiredLoadModuleNative) return loadModuleNative;
|
|
522
|
+
hasRequiredLoadModuleNative = 1;
|
|
523
|
+
// This is kept in a separate .js file to prevent TypeScript re-writing the import() statement to a require() statement
|
|
524
|
+
// This is the CJS version; the .mjs version is used by the ESM build.
|
|
525
|
+
loadModuleNative.importModule = function importModule(path) {
|
|
526
|
+
return import(path)
|
|
527
|
+
};
|
|
528
|
+
return loadModuleNative;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
requireLoadModuleNative();
|
|
532
|
+
|
|
516
533
|
/*
|
|
517
534
|
* Parses the parameter list of a function string, including ES6 class constructors.
|
|
518
535
|
*
|
package/lib/awilix.module.mjs
CHANGED
package/lib/awilix.umd.js
CHANGED
|
@@ -519,6 +519,23 @@
|
|
|
519
519
|
return typeof val === 'function';
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
+
var loadModuleNative = {};
|
|
523
|
+
|
|
524
|
+
var hasRequiredLoadModuleNative;
|
|
525
|
+
|
|
526
|
+
function requireLoadModuleNative () {
|
|
527
|
+
if (hasRequiredLoadModuleNative) return loadModuleNative;
|
|
528
|
+
hasRequiredLoadModuleNative = 1;
|
|
529
|
+
// This is kept in a separate .js file to prevent TypeScript re-writing the import() statement to a require() statement
|
|
530
|
+
// This is the CJS version; the .mjs version is used by the ESM build.
|
|
531
|
+
loadModuleNative.importModule = function importModule(path) {
|
|
532
|
+
return import(path)
|
|
533
|
+
};
|
|
534
|
+
return loadModuleNative;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
requireLoadModuleNative();
|
|
538
|
+
|
|
522
539
|
/*
|
|
523
540
|
* Parses the parameter list of a function string, including ES6 class constructors.
|
|
524
541
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function importModule(path: string): Promise<any>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function importModule(path: string): Promise<any>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// This is kept in a separate .js file to prevent TypeScript re-writing the import() statement to a require() statement
|
|
2
|
-
|
|
2
|
+
// This is the CJS version; the .mjs version is used by the ESM build.
|
|
3
|
+
module.exports.importModule = function importModule(path) {
|
|
3
4
|
return import(path)
|
|
4
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "awilix",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.3-alpha.0",
|
|
4
4
|
"description": "Extremely powerful dependency injection container.",
|
|
5
5
|
"main": "lib/awilix.js",
|
|
6
6
|
"module": "lib/awilix.module.mjs",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"cover": "npm run test -- --coverage",
|
|
49
49
|
"publish:pre": "npm run lint && npm run build && npm run cover",
|
|
50
50
|
"publish:post": "npm publish && git push --follow-tags",
|
|
51
|
-
"release:prerelease": "npm run publish:pre && npm version prerelease --preid alpha && npm
|
|
51
|
+
"release:prerelease": "npm run publish:pre && npm version prerelease --preid alpha && npm publish --tag alpha && git push --follow-tags",
|
|
52
52
|
"release:patch": "npm run publish:pre && npm version patch && npm run publish:post",
|
|
53
53
|
"release:minor": "npm run publish:pre && npm version minor && npm run publish:post",
|
|
54
54
|
"release:major": "npm run publish:pre && npm version major && npm run publish:post"
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
85
85
|
"@rollup/plugin-replace": "^6.0.3",
|
|
86
86
|
"@types/jest": "^30.0.0",
|
|
87
|
-
"@types/node": "^25.3.
|
|
87
|
+
"@types/node": "^25.3.3",
|
|
88
88
|
"babel-jest": "^30.2.0",
|
|
89
89
|
"eslint": "^9.22.0",
|
|
90
90
|
"husky": "^9.1.7",
|
|
91
91
|
"jest": "^30.2.0",
|
|
92
|
-
"lint-staged": "^16.
|
|
92
|
+
"lint-staged": "^16.3.1",
|
|
93
93
|
"prettier": "^3.8.1",
|
|
94
94
|
"rimraf": "^6.1.3",
|
|
95
95
|
"rollup": "^4.59.0",
|
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"/node_modules/",
|
|
148
148
|
"__tests__",
|
|
149
149
|
"lib",
|
|
150
|
+
"src/load-module-native.mjs",
|
|
150
151
|
"src/load-module-native.js",
|
|
151
152
|
"src/awilix.ts"
|
|
152
153
|
],
|