awilix 13.0.3 → 13.0.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/README.md +1 -0
- package/lib/awilix.browser.mjs +7 -20
- package/lib/awilix.module.mjs +13 -4
- package/lib/awilix.umd.js +7 -20
- package/lib/function-tokenizer.js +7 -3
- package/lib/function-tokenizer.js.map +1 -1
- package/lib/load-module-native.d.ts +1 -1
- package/lib/load-module-native.js +8 -4
- package/lib/load-module-native.js.map +1 -0
- package/package.json +19 -20
- package/lib/load-module-native.d.mts +0 -1
- package/lib/load-module-native.mjs +0 -4
package/README.md
CHANGED
|
@@ -1494,6 +1494,7 @@ because they depend on Node-specific packages.
|
|
|
1494
1494
|
- [`awilix-router-core`](https://github.com/jeffijoe/awilix-router-core): Library for building HTTP bindings for Awilix with routing.
|
|
1495
1495
|
- [`fastify-awilix`](https://github.com/fastify/fastify-awilix): Bindings for the Fastify framework.
|
|
1496
1496
|
- [`awilix-vite`](https://github.com/kvist-no/awilix-vite): Use Awilix in Vite projects.
|
|
1497
|
+
- [`awilix-modular`](https://github.com/wildstyles/awilix-modular): Modular DI library for Awilix that brings NestJS-like module architecture to any Node.js application.
|
|
1497
1498
|
|
|
1498
1499
|
# Contributing
|
|
1499
1500
|
|
package/lib/awilix.browser.mjs
CHANGED
|
@@ -356,9 +356,13 @@ function createTokenizer(source) {
|
|
|
356
356
|
pos++;
|
|
357
357
|
while (pos < source.length) {
|
|
358
358
|
const ch = source.charAt(pos);
|
|
359
|
-
|
|
360
|
-
//
|
|
361
|
-
if (ch ===
|
|
359
|
+
// Consume escape sequences entirely (e.g. `\'`, `\\`) so neither an
|
|
360
|
+
// escaped quote nor a literal backslash can affect string termination.
|
|
361
|
+
if (ch === '\\') {
|
|
362
|
+
pos += 2;
|
|
363
|
+
continue;
|
|
364
|
+
}
|
|
365
|
+
if (ch === quote) {
|
|
362
366
|
pos++;
|
|
363
367
|
return;
|
|
364
368
|
}
|
|
@@ -513,23 +517,6 @@ function isFunction(val) {
|
|
|
513
517
|
return typeof val === 'function';
|
|
514
518
|
}
|
|
515
519
|
|
|
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
|
-
|
|
533
520
|
/*
|
|
534
521
|
* Parses the parameter list of a function string, including ES6 class constructors.
|
|
535
522
|
*
|
package/lib/awilix.module.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as util from 'util';
|
|
2
2
|
import glob from 'fast-glob';
|
|
3
3
|
import * as path from 'path';
|
|
4
|
-
import { importModule } from './load-module-native.mjs';
|
|
5
4
|
import { pathToFileURL } from 'url';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -362,9 +361,13 @@ function createTokenizer(source) {
|
|
|
362
361
|
pos++;
|
|
363
362
|
while (pos < source.length) {
|
|
364
363
|
const ch = source.charAt(pos);
|
|
365
|
-
|
|
366
|
-
//
|
|
367
|
-
if (ch ===
|
|
364
|
+
// Consume escape sequences entirely (e.g. `\'`, `\\`) so neither an
|
|
365
|
+
// escaped quote nor a literal backslash can affect string termination.
|
|
366
|
+
if (ch === '\\') {
|
|
367
|
+
pos += 2;
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
if (ch === quote) {
|
|
368
371
|
pos++;
|
|
369
372
|
return;
|
|
370
373
|
}
|
|
@@ -593,6 +596,12 @@ function listModules(globPatterns, opts) {
|
|
|
593
596
|
return _listModules(globPatterns, opts);
|
|
594
597
|
}
|
|
595
598
|
|
|
599
|
+
// Kept in a separate module so it can be excluded from test coverage;
|
|
600
|
+
// jest cannot execute a native dynamic import.
|
|
601
|
+
function importModule(path) {
|
|
602
|
+
return import(path);
|
|
603
|
+
}
|
|
604
|
+
|
|
596
605
|
/**
|
|
597
606
|
* Hyperoptimized camelCase conversion.
|
|
598
607
|
*
|
package/lib/awilix.umd.js
CHANGED
|
@@ -362,9 +362,13 @@
|
|
|
362
362
|
pos++;
|
|
363
363
|
while (pos < source.length) {
|
|
364
364
|
const ch = source.charAt(pos);
|
|
365
|
-
|
|
366
|
-
//
|
|
367
|
-
if (ch ===
|
|
365
|
+
// Consume escape sequences entirely (e.g. `\'`, `\\`) so neither an
|
|
366
|
+
// escaped quote nor a literal backslash can affect string termination.
|
|
367
|
+
if (ch === '\\') {
|
|
368
|
+
pos += 2;
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
if (ch === quote) {
|
|
368
372
|
pos++;
|
|
369
373
|
return;
|
|
370
374
|
}
|
|
@@ -519,23 +523,6 @@
|
|
|
519
523
|
return typeof val === 'function';
|
|
520
524
|
}
|
|
521
525
|
|
|
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
|
-
|
|
539
526
|
/*
|
|
540
527
|
* Parses the parameter list of a function string, including ES6 class constructors.
|
|
541
528
|
*
|
|
@@ -169,9 +169,13 @@ function createTokenizer(source) {
|
|
|
169
169
|
pos++;
|
|
170
170
|
while (pos < source.length) {
|
|
171
171
|
const ch = source.charAt(pos);
|
|
172
|
-
|
|
173
|
-
//
|
|
174
|
-
if (ch ===
|
|
172
|
+
// Consume escape sequences entirely (e.g. `\'`, `\\`) so neither an
|
|
173
|
+
// escaped quote nor a literal backslash can affect string termination.
|
|
174
|
+
if (ch === '\\') {
|
|
175
|
+
pos += 2;
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
if (ch === quote) {
|
|
175
179
|
pos++;
|
|
176
180
|
return;
|
|
177
181
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-tokenizer.js","sourceRoot":"","sources":["../src/function-tokenizer.ts"],"names":[],"mappings":";;AAsCA,
|
|
1
|
+
{"version":3,"file":"function-tokenizer.js","sourceRoot":"","sources":["../src/function-tokenizer.ts"],"names":[],"mappings":";;AAsCA,0CAkOC;AAvOD;;;;GAIG;AACH,SAAgB,eAAe,CAAC,MAAc;IAC5C,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAA;IACzB,IAAI,GAAG,GAAW,CAAC,CAAA;IACnB,IAAI,IAAI,GAAc,KAAK,CAAA;IAC3B,IAAI,KAAK,GAAW,EAAE,CAAA;IACtB,IAAI,KAAK,8BAAsB,CAAA;IAC/B,uDAAuD;IACvD,iDAAiD;IACjD,IAAI,SAAS,GAAG,CAAC,CAAA;IACjB,IAAI,UAAU,GAAG,CAAC,CAAA;IAElB,OAAO;QACL,IAAI;QACJ,IAAI;KACL,CAAA;IAED;;OAEG;IACH,SAAS,IAAI,CAAC,SAAS,8BAAsB;QAC3C,KAAK,GAAG,SAAS,CAAA;QACjB,OAAO,EAAE,CAAA;QACT,OAAO,WAAW,EAAE,CAAA;IACtB,CAAC;IAED;;OAEG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AC;QACV,KAAK,IAAI,CAAC;QACV,KAAK,GAAG;YACN,OAAO,IAAI,CAAA;IACf,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED;;;;GAIG;AACH,SAAS,aAAa,CAAC,EAAU;IAC/B,QAAQ,EAAE,EAAE,CAAC;QACX,KAAK,GAAG,CAAC;QACT,KAAK,GAAG,CAAC;QACT,KAAK,GAAG;YACN,OAAO,IAAI,CAAA;IACf,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,oEAAoE;AACpE,wDAAwD;AACxD,wDAAwD;AACxD,0CAA0C;AAC1C,MAAM,gBAAgB,GAAG,yBAAyB,CAAA;AAClD,MAAM,eAAe,GAAG,8BAA8B,CAAA;AAEtD;;GAEG;AACH,SAAS,iBAAiB,CAAC,EAAU;IACnC,OAAO,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAClC,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,EAAU;IAClC,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function importModule(path: string): Promise<any
|
|
1
|
+
export declare function importModule(path: string): Promise<any>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.importModule = importModule;
|
|
4
|
+
// Kept in a separate module so it can be excluded from test coverage;
|
|
5
|
+
// jest cannot execute a native dynamic import.
|
|
6
|
+
function importModule(path) {
|
|
7
|
+
return import(path);
|
|
5
8
|
}
|
|
9
|
+
//# sourceMappingURL=load-module-native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-module-native.js","sourceRoot":"","sources":["../src/load-module-native.ts"],"names":[],"mappings":";;AAEA,oCAEC;AAJD,sEAAsE;AACtE,+CAA+C;AAC/C,SAAgB,YAAY,CAAC,IAAY;IACvC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAA;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "awilix",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.5",
|
|
4
4
|
"description": "Extremely powerful dependency injection container.",
|
|
5
5
|
"main": "lib/awilix.js",
|
|
6
6
|
"module": "lib/awilix.module.mjs",
|
|
@@ -76,31 +76,28 @@
|
|
|
76
76
|
},
|
|
77
77
|
"homepage": "https://github.com/jeffijoe/awilix#readme",
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@babel/core": "^7.29.
|
|
80
|
-
"@babel/plugin-transform-runtime": "^7.29.
|
|
81
|
-
"@babel/preset-env": "^7.29.
|
|
82
|
-
"@babel/runtime": "^7.
|
|
83
|
-
"@rollup/plugin-commonjs": "^29.0.0",
|
|
84
|
-
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
79
|
+
"@babel/core": "^7.29.7",
|
|
80
|
+
"@babel/plugin-transform-runtime": "^7.29.7",
|
|
81
|
+
"@babel/preset-env": "^7.29.7",
|
|
82
|
+
"@babel/runtime": "^7.29.7",
|
|
85
83
|
"@rollup/plugin-replace": "^6.0.3",
|
|
86
84
|
"@types/jest": "^30.0.0",
|
|
87
|
-
"@types/node": "^25.
|
|
88
|
-
"babel-jest": "^30.
|
|
85
|
+
"@types/node": "^25.9.3",
|
|
86
|
+
"babel-jest": "^30.4.1",
|
|
89
87
|
"eslint": "^9.22.0",
|
|
90
88
|
"husky": "^9.1.7",
|
|
91
|
-
"jest": "^30.2
|
|
89
|
+
"jest": "^30.4.2",
|
|
92
90
|
"lint-staged": "^16.3.1",
|
|
93
|
-
"prettier": "^3.8.
|
|
91
|
+
"prettier": "^3.8.4",
|
|
94
92
|
"rimraf": "^6.1.3",
|
|
95
|
-
"rollup": "^4.
|
|
96
|
-
"rollup-plugin-
|
|
97
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
93
|
+
"rollup": "^4.61.1",
|
|
94
|
+
"rollup-plugin-typescript2": "^0.37.0",
|
|
98
95
|
"smid": "^0.1.1",
|
|
99
|
-
"tinybench": "^6.0.
|
|
100
|
-
"ts-jest": "^29.4.
|
|
96
|
+
"tinybench": "^6.0.2",
|
|
97
|
+
"ts-jest": "^29.4.11",
|
|
101
98
|
"tslib": "^2.8.1",
|
|
102
|
-
"typescript": "^
|
|
103
|
-
"typescript-eslint": "^8.
|
|
99
|
+
"typescript": "^6.0.3",
|
|
100
|
+
"typescript-eslint": "^8.61.0"
|
|
104
101
|
},
|
|
105
102
|
"dependencies": {
|
|
106
103
|
"fast-glob": "^3.3.3"
|
|
@@ -147,8 +144,7 @@
|
|
|
147
144
|
"/node_modules/",
|
|
148
145
|
"__tests__",
|
|
149
146
|
"lib",
|
|
150
|
-
"src/load-module-native.
|
|
151
|
-
"src/load-module-native.js",
|
|
147
|
+
"src/load-module-native.ts",
|
|
152
148
|
"src/awilix.ts"
|
|
153
149
|
],
|
|
154
150
|
"moduleFileExtensions": [
|
|
@@ -156,6 +152,9 @@
|
|
|
156
152
|
"tsx",
|
|
157
153
|
"js"
|
|
158
154
|
],
|
|
155
|
+
"moduleNameMapper": {
|
|
156
|
+
"^(\\.{1,2}/.*)\\.js$": "$1"
|
|
157
|
+
},
|
|
159
158
|
"transform": {
|
|
160
159
|
"^.+\\.tsx?$": [
|
|
161
160
|
"ts-jest",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function importModule(path: string): Promise<any>
|