@loopback/context
Advanced tools
Comparing version 4.0.0-alpha.7 to 4.0.0-alpha.8
@@ -103,1 +103,2 @@ "use strict"; | ||
exports.Binding = Binding; | ||
//# sourceMappingURL=binding.js.map |
@@ -97,1 +97,2 @@ "use strict"; | ||
exports.Context = Context; | ||
//# sourceMappingURL=context.js.map |
@@ -1,5 +0,1 @@ | ||
export { Binding, BoundValue } from './binding'; | ||
export { Context } from './context'; | ||
export { Constructor } from './resolver'; | ||
export { inject } from './inject'; | ||
export declare const isPromise: any; | ||
export * from './src'; |
"use strict"; | ||
// Copyright IBM Corp. 2017. All Rights Reserved. | ||
// Node module: loopback | ||
// Copyright IBM Corp. 2013,2017. All Rights Reserved. | ||
// Node module: @loopback/context | ||
// This file is licensed under the MIT License. | ||
// License text available at https://opensource.org/licenses/MIT | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var binding_1 = require("./binding"); | ||
exports.Binding = binding_1.Binding; | ||
var context_1 = require("./context"); | ||
exports.Context = context_1.Context; | ||
var inject_1 = require("./inject"); | ||
exports.inject = inject_1.inject; | ||
exports.isPromise = require('is-promise'); | ||
// NOTE(bajtos) This file is used by VSCode/TypeScriptServer at dev time only | ||
__export(require("./src")); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,1 @@ | ||
import 'reflect-metadata'; | ||
import { BoundValue } from './binding'; | ||
@@ -3,0 +2,0 @@ export interface Injection { |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("reflect-metadata"); | ||
const reflect_1 = require("./reflect"); | ||
const REFLECTION_CDI_KEY = 'loopback:inject:constructor'; | ||
@@ -42,11 +42,11 @@ const REFLECTION_PDI_KEY = 'loopback:inject:properties'; | ||
// Please note propertyKey is `undefined` for constructor | ||
const injectedArgs = Reflect.getOwnMetadata(REFLECTION_CDI_KEY, target, propertyKey) || []; | ||
const injectedArgs = reflect_1.Reflector.getOwnMetadata(REFLECTION_CDI_KEY, target, propertyKey) || []; | ||
injectedArgs[propertyDescriptorOrParameterIndex] = { bindingKey, metadata }; | ||
Reflect.defineMetadata(REFLECTION_CDI_KEY, injectedArgs, target, propertyKey); | ||
reflect_1.Reflector.defineMetadata(REFLECTION_CDI_KEY, injectedArgs, target, propertyKey); | ||
} | ||
else if (propertyKey) { | ||
// The decorator is applied to a property | ||
const injections = Reflect.getOwnMetadata(REFLECTION_PDI_KEY, target) || {}; | ||
const injections = reflect_1.Reflector.getOwnMetadata(REFLECTION_PDI_KEY, target) || {}; | ||
injections[propertyKey] = { bindingKey, metadata }; | ||
Reflect.defineMetadata(REFLECTION_PDI_KEY, injections, target); | ||
reflect_1.Reflector.defineMetadata(REFLECTION_PDI_KEY, injections, target); | ||
} | ||
@@ -64,3 +64,3 @@ else { | ||
function describeInjectedArguments(target) { | ||
return Reflect.getOwnMetadata(REFLECTION_CDI_KEY, target) || []; | ||
return reflect_1.Reflector.getOwnMetadata(REFLECTION_CDI_KEY, target) || []; | ||
} | ||
@@ -74,4 +74,5 @@ exports.describeInjectedArguments = describeInjectedArguments; | ||
function describeInjectedProperties(target) { | ||
return Reflect.getOwnMetadata(REFLECTION_PDI_KEY, target.prototype) || {}; | ||
return reflect_1.Reflector.getOwnMetadata(REFLECTION_PDI_KEY, target.prototype) || {}; | ||
} | ||
exports.describeInjectedProperties = describeInjectedProperties; | ||
//# sourceMappingURL=inject.js.map |
@@ -15,1 +15,2 @@ "use strict"; | ||
exports.isPromise = isPromise; | ||
//# sourceMappingURL=isPromise.js.map |
@@ -129,1 +129,2 @@ "use strict"; | ||
exports.resolveInjectedProperties = resolveInjectedProperties; | ||
//# sourceMappingURL=resolver.js.map |
@@ -103,1 +103,2 @@ "use strict"; | ||
exports.Binding = Binding; | ||
//# sourceMappingURL=binding.js.map |
@@ -97,1 +97,2 @@ "use strict"; | ||
exports.Context = Context; | ||
//# sourceMappingURL=context.js.map |
@@ -1,5 +0,1 @@ | ||
export { Binding, BoundValue } from './binding'; | ||
export { Context } from './context'; | ||
export { Constructor } from './resolver'; | ||
export { inject } from './inject'; | ||
export declare const isPromise: any; | ||
export * from './src'; |
"use strict"; | ||
// Copyright IBM Corp. 2017. All Rights Reserved. | ||
// Node module: loopback | ||
// Copyright IBM Corp. 2013,2017. All Rights Reserved. | ||
// Node module: @loopback/context | ||
// This file is licensed under the MIT License. | ||
// License text available at https://opensource.org/licenses/MIT | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var binding_1 = require("./binding"); | ||
exports.Binding = binding_1.Binding; | ||
var context_1 = require("./context"); | ||
exports.Context = context_1.Context; | ||
var inject_1 = require("./inject"); | ||
exports.inject = inject_1.inject; | ||
exports.isPromise = require('is-promise'); | ||
// NOTE(bajtos) This file is used by VSCode/TypeScriptServer at dev time only | ||
__export(require("./src")); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,1 @@ | ||
import 'reflect-metadata'; | ||
import { BoundValue } from './binding'; | ||
@@ -3,0 +2,0 @@ export interface Injection { |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("reflect-metadata"); | ||
const reflect_1 = require("./reflect"); | ||
const REFLECTION_CDI_KEY = 'loopback:inject:constructor'; | ||
@@ -42,11 +42,11 @@ const REFLECTION_PDI_KEY = 'loopback:inject:properties'; | ||
// Please note propertyKey is `undefined` for constructor | ||
const injectedArgs = Reflect.getOwnMetadata(REFLECTION_CDI_KEY, target, propertyKey) || []; | ||
const injectedArgs = reflect_1.Reflector.getOwnMetadata(REFLECTION_CDI_KEY, target, propertyKey) || []; | ||
injectedArgs[propertyDescriptorOrParameterIndex] = { bindingKey, metadata }; | ||
Reflect.defineMetadata(REFLECTION_CDI_KEY, injectedArgs, target, propertyKey); | ||
reflect_1.Reflector.defineMetadata(REFLECTION_CDI_KEY, injectedArgs, target, propertyKey); | ||
} | ||
else if (propertyKey) { | ||
// The decorator is applied to a property | ||
const injections = Reflect.getOwnMetadata(REFLECTION_PDI_KEY, target) || {}; | ||
const injections = reflect_1.Reflector.getOwnMetadata(REFLECTION_PDI_KEY, target) || {}; | ||
injections[propertyKey] = { bindingKey, metadata }; | ||
Reflect.defineMetadata(REFLECTION_PDI_KEY, injections, target); | ||
reflect_1.Reflector.defineMetadata(REFLECTION_PDI_KEY, injections, target); | ||
} | ||
@@ -64,3 +64,3 @@ else { | ||
function describeInjectedArguments(target) { | ||
return Reflect.getOwnMetadata(REFLECTION_CDI_KEY, target) || []; | ||
return reflect_1.Reflector.getOwnMetadata(REFLECTION_CDI_KEY, target) || []; | ||
} | ||
@@ -74,4 +74,5 @@ exports.describeInjectedArguments = describeInjectedArguments; | ||
function describeInjectedProperties(target) { | ||
return Reflect.getOwnMetadata(REFLECTION_PDI_KEY, target.prototype) || {}; | ||
return reflect_1.Reflector.getOwnMetadata(REFLECTION_PDI_KEY, target.prototype) || {}; | ||
} | ||
exports.describeInjectedProperties = describeInjectedProperties; | ||
//# sourceMappingURL=inject.js.map |
@@ -15,1 +15,2 @@ "use strict"; | ||
exports.isPromise = isPromise; | ||
//# sourceMappingURL=isPromise.js.map |
@@ -129,1 +129,2 @@ "use strict"; | ||
exports.resolveInjectedProperties = resolveInjectedProperties; | ||
//# sourceMappingURL=resolver.js.map |
{ | ||
"name": "@loopback/context", | ||
"version": "4.0.0-alpha.7", | ||
"version": "4.0.0-alpha.8", | ||
"description": "LoopBack's container for Inversion of Control", | ||
@@ -8,5 +8,5 @@ "scripts": { | ||
"build": "npm run build:lib && npm run build:lib6", | ||
"build:lib": "tsc -p tsconfig.build.json --target es2017 --outDir lib", | ||
"build:lib6": "tsc -p tsconfig.build.json --target es2015 --outDir lib6", | ||
"clean": "rm -f loopback-context*.tgz && rm -rf lib* && rm -rf package", | ||
"build:lib": "node ../../bin/compile-package es2017", | ||
"build:lib6": "node ../../bin/compile-package es2015", | ||
"clean": "rm -rf loopback-context*.tgz lib* package", | ||
"prepublish": "npm run build", | ||
@@ -21,3 +21,2 @@ "pretest": "npm run build", | ||
"dependencies": { | ||
"is-promise": "^2.1.0", | ||
"reflect-metadata": "^0.1.10" | ||
@@ -24,0 +23,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
166401
1
94
3081
0
- Removedis-promise@^2.1.0
- Removedis-promise@2.2.2(transitive)