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

inversify

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inversify - npm Package Compare versions

Comparing version 3.0.0-rc.4 to 3.0.0

4

amd/annotation/multi_inject.js

@@ -7,6 +7,6 @@ define(["require", "exports", "../planning/metadata", "./decorator_utils", "../constants/metadata_keys"], function (require, exports, metadata_1, decorator_utils_1, METADATA_KEY) {

if (typeof index === "number") {
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
}
else {
return decorator_utils_1.tagProperty(target, targetKey, metadata);
decorator_utils_1.tagProperty(target, targetKey, metadata);
}

@@ -13,0 +13,0 @@ };

@@ -7,6 +7,6 @@ define(["require", "exports", "../planning/metadata", "./decorator_utils", "../constants/metadata_keys"], function (require, exports, metadata_1, decorator_utils_1, METADATA_KEY) {

if (typeof index === "number") {
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
}
else {
return decorator_utils_1.tagProperty(target, targetKey, metadata);
decorator_utils_1.tagProperty(target, targetKey, metadata);
}

@@ -13,0 +13,0 @@ };

@@ -6,3 +6,8 @@ define(["require", "exports", "../planning/metadata", "./decorator_utils", "../constants/metadata_keys"], function (require, exports, metadata_1, decorator_utils_1, METADATA_KEY) {

var metadata = new metadata_1.Metadata(METADATA_KEY.OPTIONAL_TAG, true);
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
if (typeof index === "number") {
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
}
else {
decorator_utils_1.tagProperty(target, targetKey, metadata);
}
};

@@ -9,0 +14,0 @@ }

@@ -7,6 +7,6 @@ define(["require", "exports", "../planning/metadata", "./decorator_utils"], function (require, exports, metadata_1, decorator_utils_1) {

if (typeof index === "number") {
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
}
else {
return decorator_utils_1.tagProperty(target, targetKey, metadata);
decorator_utils_1.tagProperty(target, targetKey, metadata);
}

@@ -13,0 +13,0 @@ };

@@ -6,3 +6,3 @@ define(["require", "exports", "../planning/metadata", "./decorator_utils", "../constants/metadata_keys"], function (require, exports, metadata_1, decorator_utils_1, METADATA_KEY) {

var metadata = new metadata_1.Metadata(METADATA_KEY.NAME_TAG, name);
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
};

@@ -9,0 +9,0 @@ }

@@ -6,3 +6,3 @@ define(["require", "exports", "../planning/metadata", "./decorator_utils", "../constants/metadata_keys"], function (require, exports, metadata_1, decorator_utils_1, METADATA_KEY) {

var metadata = new metadata_1.Metadata(METADATA_KEY.UNMANAGED_TAG, true);
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
};

@@ -9,0 +9,0 @@ }

@@ -1,2 +0,2 @@

declare function optional(): (target: any, targetKey: string, index: number) => void;
declare function optional(): (target: any, targetKey: string, index?: number | undefined) => void;
export { optional };

@@ -8,6 +8,6 @@ import { Metadata } from "../planning/metadata";

if (typeof index === "number") {
return tagParameter(target, targetKey, index, metadata);
tagParameter(target, targetKey, index, metadata);
}
else {
return tagProperty(target, targetKey, metadata);
tagProperty(target, targetKey, metadata);
}

@@ -14,0 +14,0 @@ };

@@ -8,6 +8,6 @@ import { Metadata } from "../planning/metadata";

if (typeof index === "number") {
return tagParameter(target, targetKey, index, metadata);
tagParameter(target, targetKey, index, metadata);
}
else {
return tagProperty(target, targetKey, metadata);
tagProperty(target, targetKey, metadata);
}

@@ -14,0 +14,0 @@ };

import { Metadata } from "../planning/metadata";
import { tagParameter } from "./decorator_utils";
import { tagProperty, tagParameter } from "./decorator_utils";
import * as METADATA_KEY from "../constants/metadata_keys";

@@ -7,5 +7,10 @@ function optional() {

var metadata = new Metadata(METADATA_KEY.OPTIONAL_TAG, true);
return tagParameter(target, targetKey, index, metadata);
if (typeof index === "number") {
tagParameter(target, targetKey, index, metadata);
}
else {
tagProperty(target, targetKey, metadata);
}
};
}
export { optional };

@@ -7,6 +7,6 @@ import { Metadata } from "../planning/metadata";

if (typeof index === "number") {
return tagParameter(target, targetKey, index, metadata);
tagParameter(target, targetKey, index, metadata);
}
else {
return tagProperty(target, targetKey, metadata);
tagProperty(target, targetKey, metadata);
}

@@ -13,0 +13,0 @@ };

@@ -7,5 +7,5 @@ import { Metadata } from "../planning/metadata";

var metadata = new Metadata(METADATA_KEY.NAME_TAG, name);
return tagParameter(target, targetKey, index, metadata);
tagParameter(target, targetKey, index, metadata);
};
}
export { targetName };

@@ -7,5 +7,5 @@ import { Metadata } from "../planning/metadata";

var metadata = new Metadata(METADATA_KEY.UNMANAGED_TAG, true);
return tagParameter(target, targetKey, index, metadata);
tagParameter(target, targetKey, index, metadata);
};
}
export { unmanaged };

@@ -9,6 +9,6 @@ "use strict";

if (typeof index === "number") {
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
}
else {
return decorator_utils_1.tagProperty(target, targetKey, metadata);
decorator_utils_1.tagProperty(target, targetKey, metadata);
}

@@ -15,0 +15,0 @@ };

@@ -9,6 +9,6 @@ "use strict";

if (typeof index === "number") {
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
}
else {
return decorator_utils_1.tagProperty(target, targetKey, metadata);
decorator_utils_1.tagProperty(target, targetKey, metadata);
}

@@ -15,0 +15,0 @@ };

@@ -8,5 +8,10 @@ "use strict";

var metadata = new metadata_1.Metadata(METADATA_KEY.OPTIONAL_TAG, true);
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
if (typeof index === "number") {
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
}
else {
decorator_utils_1.tagProperty(target, targetKey, metadata);
}
};
}
exports.optional = optional;

@@ -8,6 +8,6 @@ "use strict";

if (typeof index === "number") {
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
}
else {
return decorator_utils_1.tagProperty(target, targetKey, metadata);
decorator_utils_1.tagProperty(target, targetKey, metadata);
}

@@ -14,0 +14,0 @@ };

@@ -8,5 +8,5 @@ "use strict";

var metadata = new metadata_1.Metadata(METADATA_KEY.NAME_TAG, name);
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
};
}
exports.targetName = targetName;

@@ -8,5 +8,5 @@ "use strict";

var metadata = new metadata_1.Metadata(METADATA_KEY.UNMANAGED_TAG, true);
return decorator_utils_1.tagParameter(target, targetKey, index, metadata);
decorator_utils_1.tagParameter(target, targetKey, index, metadata);
};
}
exports.unmanaged = unmanaged;
{
"name": "inversify",
"version": "3.0.0-rc.4",
"version": "3.0.0",
"description": "A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.",

@@ -69,3 +69,3 @@ "main": "lib/inversify.js",

"mocha": "^3.0.1",
"performance-now": "^0.2.0",
"performance-now": "^2.0.0",
"publish-please": "^2.1.4",

@@ -72,0 +72,0 @@ "reflect-metadata": "^0.1.9",

@@ -85,5 +85,5 @@ # InversifyJS

- [Reflect metadata](https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md)
- [Reflect metadata](https://rbuckton.github.io/reflect-metadata/)
- [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)
- [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) (Only required if using [provider injection](https://github.com/inversify/InversifyJS#injecting-a-provider-asynchronous-factory))
- [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) (Only required if using [provider injection](https://github.com/inversify/InversifyJS/blob/master/wiki/provider_injection.md))
- [Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) (Only required if using [activation handlers](https://github.com/inversify/InversifyJS/blob/master/wiki/activation_handler.md))

@@ -273,3 +273,3 @@

If you want to share your thoughts with the development team or join us you will be able to do so using the [official the mailing list](https://groups.google.com/forum/#!forum/inversifyjs). You can check out the
[wiki](https://github.com/inversify/InversifyJS/blob/master/wiki/readme.md) and browse the [documented source code](http://inversify.io/documentation/index.html) to learn more about InversifyJS internals.
[wiki](https://github.com/inversify/InversifyJS/blob/master/wiki/readme.md) to learn more about InversifyJS internals.

@@ -276,0 +276,0 @@ ## Acknowledgements

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