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

@aurelia/kernel

Package Overview
Dependencies
Maintainers
1
Versions
1117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelia/kernel - npm Package Compare versions

Comparing version 0.2.0-dev.20180928 to 0.2.0-dev.20181001

11

dist/index.es6.js

@@ -135,17 +135,18 @@ const camelCaseLookup = {};

Key.register = function (container, key) {
const trueKey = key || Key;
return configure({
instance(value) {
return container.registerResolver(Key, new Resolver(key || Key, 0 /* instance */, value));
return container.registerResolver(trueKey, new Resolver(trueKey, 0 /* instance */, value));
},
singleton(value) {
return container.registerResolver(Key, new Resolver(key || Key, 1 /* singleton */, value));
return container.registerResolver(trueKey, new Resolver(trueKey, 1 /* singleton */, value));
},
transient(value) {
return container.registerResolver(Key, new Resolver(key || Key, 2 /* transient */, value));
return container.registerResolver(trueKey, new Resolver(trueKey, 2 /* transient */, value));
},
callback(value) {
return container.registerResolver(Key, new Resolver(key || Key, 3 /* callback */, value));
return container.registerResolver(trueKey, new Resolver(trueKey, 3 /* callback */, value));
},
aliasTo(destinationKey) {
return container.registerResolver(destinationKey, new Resolver(key || Key, 5 /* alias */, Key));
return container.registerResolver(trueKey, new Resolver(trueKey, 5 /* alias */, destinationKey));
},

@@ -152,0 +153,0 @@ });

@@ -141,17 +141,18 @@ (function (global, factory) {

Key.register = function (container, key) {
const trueKey = key || Key;
return configure({
instance(value) {
return container.registerResolver(Key, new Resolver(key || Key, 0 /* instance */, value));
return container.registerResolver(trueKey, new Resolver(trueKey, 0 /* instance */, value));
},
singleton(value) {
return container.registerResolver(Key, new Resolver(key || Key, 1 /* singleton */, value));
return container.registerResolver(trueKey, new Resolver(trueKey, 1 /* singleton */, value));
},
transient(value) {
return container.registerResolver(Key, new Resolver(key || Key, 2 /* transient */, value));
return container.registerResolver(trueKey, new Resolver(trueKey, 2 /* transient */, value));
},
callback(value) {
return container.registerResolver(Key, new Resolver(key || Key, 3 /* callback */, value));
return container.registerResolver(trueKey, new Resolver(trueKey, 3 /* callback */, value));
},
aliasTo(destinationKey) {
return container.registerResolver(destinationKey, new Resolver(key || Key, 5 /* alias */, Key));
return container.registerResolver(trueKey, new Resolver(trueKey, 5 /* alias */, destinationKey));
},

@@ -158,0 +159,0 @@ });

{
"name": "@aurelia/kernel",
"version": "0.2.0-dev.20180928",
"version": "0.2.0-dev.20181001",
"main": "dist/index.umd.js",

@@ -84,3 +84,3 @@ "module": "dist/index.es6.js",

},
"gitHead": "48c41516655c2d1b9d9822d4fa2732a47c0b0f36"
"gitHead": "5971d36d4b8629352b3d1ec29eb06cfddd0ef9c7"
}

@@ -132,17 +132,18 @@ // tslint:disable:no-reserved-keywords

Key.register = function(container: IContainer, key?: Key<T>): IResolver<T> {
const trueKey = key || Key;
return configure({
instance(value: T): IResolver {
return container.registerResolver(Key, new Resolver(key || Key, ResolverStrategy.instance, value));
return container.registerResolver(trueKey, new Resolver(trueKey, ResolverStrategy.instance, value));
},
singleton(value: Function): IResolver {
return container.registerResolver(Key, new Resolver(key || Key, ResolverStrategy.singleton, value));
return container.registerResolver(trueKey, new Resolver(trueKey, ResolverStrategy.singleton, value));
},
transient(value: Function): IResolver {
return container.registerResolver(Key, new Resolver(key || Key, ResolverStrategy.transient, value));
return container.registerResolver(trueKey, new Resolver(trueKey, ResolverStrategy.transient, value));
},
callback(value: ResolveCallback): IResolver {
return container.registerResolver(Key, new Resolver(key || Key, ResolverStrategy.callback, value));
return container.registerResolver(trueKey, new Resolver(trueKey, ResolverStrategy.callback, value));
},
aliasTo(destinationKey: T): IResolver {
return container.registerResolver(destinationKey, new Resolver(key || Key, ResolverStrategy.alias, Key));
return container.registerResolver(trueKey, new Resolver(trueKey, ResolverStrategy.alias, destinationKey));
},

@@ -149,0 +150,0 @@ });

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