Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awilix

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awilix - npm Package Compare versions

Comparing version 4.2.6 to 4.2.7

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# v4.2.7
- Fixes AwilixResolutionError throwing TypeError if resolution stack contains symbols ([#205](https://github.com/jeffijoe/awilix/pull/205), [astephens25](https://github.com/astephens25))
- Update packages
# v4.2.6

@@ -2,0 +7,0 @@

28

lib/awilix.browser.js
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

@@ -20,3 +20,3 @@ /* global Reflect, Promise */

({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);

@@ -191,3 +191,5 @@ };

}
resolutionStack = resolutionStack.slice();
resolutionStack = resolutionStack.map(function (val) {
return typeof val === 'symbol' ? val.toString() : val;
});
resolutionStack.push(name);

@@ -1158,3 +1160,3 @@ var resolutionPathString = resolutionStack.join(' -> ');

},
enumerable: true,
enumerable: false,
configurable: true

@@ -1161,0 +1163,0 @@ }),

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./errors"));
__export(require("./list-modules"));
__export(require("./container"));
__export(require("./resolvers"));
__export(require("./injection-mode"));
__export(require("./lifetime"));
__exportStar(require("./errors"), exports);
__exportStar(require("./list-modules"), exports);
__exportStar(require("./container"), exports);
__exportStar(require("./resolvers"), exports);
__exportStar(require("./injection-mode"), exports);
__exportStar(require("./lifetime"), exports);
//# sourceMappingURL=awilix.js.map

@@ -107,3 +107,3 @@ import { sync } from 'glob';

}
resolutionStack = resolutionStack.slice();
resolutionStack = resolutionStack.map((val) => typeof val === 'symbol' ? val.toString() : val);
resolutionStack.push(name);

@@ -110,0 +110,0 @@ const resolutionPathString = resolutionStack.join(' -> ');

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.Awilix = {}));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Awilix = {}));
}(this, (function (exports) { 'use strict';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

@@ -26,3 +26,3 @@ /* global Reflect, Promise */

({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);

@@ -197,3 +197,5 @@ };

}
resolutionStack = resolutionStack.slice();
resolutionStack = resolutionStack.map(function (val) {
return typeof val === 'symbol' ? val.toString() : val;
});
resolutionStack.push(name);

@@ -1164,3 +1166,3 @@ var resolutionPathString = resolutionStack.join(' -> ');

},
enumerable: true,
enumerable: false,
configurable: true

@@ -1167,0 +1169,0 @@ }),

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createContainer = void 0;
const util = require("util");

@@ -4,0 +5,0 @@ const list_modules_1 = require("./list-modules");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AwilixResolutionError = exports.AwilixTypeError = exports.AwilixError = exports.ExtendableError = void 0;
/**

@@ -107,3 +108,3 @@ * Newline.

}
resolutionStack = resolutionStack.slice();
resolutionStack = resolutionStack.map((val) => typeof val === 'symbol' ? val.toString() : val);
resolutionStack.push(name);

@@ -110,0 +111,0 @@ const resolutionPathString = resolutionStack.join(' -> ');

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createTokenizer = void 0;
/**

@@ -4,0 +5,0 @@ * Creates a tokenizer for the specified source.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InjectionMode = void 0;
/**

@@ -4,0 +5,0 @@ * Resolution modes.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Lifetime = void 0;
/**

@@ -4,0 +5,0 @@ * Lifetime types.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.listModules = void 0;
const glob = require("glob");

@@ -4,0 +5,0 @@ const path = require("path");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadModules = void 0;
const lifetime_1 = require("./lifetime");

@@ -4,0 +5,0 @@ const resolvers_1 = require("./resolvers");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseParameterList = void 0;
const function_tokenizer_1 = require("./function-tokenizer");

@@ -4,0 +5,0 @@ /*

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createDisposableResolver = exports.createBuildResolver = exports.aliasTo = exports.asClass = exports.asFunction = exports.asValue = exports.RESOLVER = void 0;
const lifetime_1 = require("./lifetime");

@@ -4,0 +5,0 @@ const injection_mode_1 = require("./injection-mode");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.uniq = exports.isFunction = exports.isClass = exports.last = exports.nameValueToObject = exports.flatten = void 0;
const function_tokenizer_1 = require("./function-tokenizer");

@@ -4,0 +5,0 @@ /**

{
"name": "awilix",
"version": "4.2.6",
"version": "4.2.7",
"description": "Extremely powerful dependency injection container.",

@@ -53,30 +53,30 @@ "main": "lib/awilix.js",

"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/runtime": "^7.9.2",
"@types/glob": "^7.1.1",
"@types/jest": "^25.2.1",
"@types/node": "^13.13.1",
"@types/prettier": "^2.0.0",
"babel-jest": "^25.4.0",
"coveralls": "^3.0.11",
"husky": "^4.2.5",
"@babel/core": "^7.12.3",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/runtime": "^7.12.1",
"@types/glob": "^7.1.3",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.2",
"@types/prettier": "^2.1.5",
"babel-jest": "^26.6.1",
"coveralls": "^3.1.0",
"husky": "^4.3.0",
"istanbul": "^0.4.5",
"jest": "^25.4.0",
"lint-staged": "^10.1.6",
"prettier": "^2.0.4",
"jest": "^26.6.1",
"lint-staged": "^10.4.2",
"prettier": "^2.1.2",
"rimraf": "^3.0.2",
"rollup": "^2.6.1",
"rollup": "^2.32.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-typescript2": "^0.27.0",
"rollup-plugin-typescript2": "^0.28.0",
"smid": "^0.1.1",
"ts-jest": "^25.4.0",
"tslib": "^1.11.1",
"tslint": "^6.1.1",
"ts-jest": "^26.4.1",
"tslib": "^2.0.3",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-config-standard": "^9.0.0",
"typescript": "^3.8.3"
"typescript": "^4.0.3"
},

@@ -83,0 +83,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc