Socket
Socket
Sign inDemoInstall

inversify-binding-decorators

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

2

dist/index.min.js
/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -12,3 +12,3 @@ * MIT inversify.io/LICENSE

function fluentProvide(kernel) {
return function (serviceIdentifier) {
return function _fluentProvide(serviceIdentifier) {
var bindingWhenOnSyntax = kernel.bind(serviceIdentifier).to(null);

@@ -15,0 +15,0 @@ var provideInWhenOnSyntax = new ProvideInWhenOnSyntax(new ProvideInSyntax(bindingWhenOnSyntax), new ProvideWhenSyntax(bindingWhenOnSyntax), new ProvideOnSyntax(bindingWhenOnSyntax));

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -9,3 +9,3 @@ * MIT inversify.io/LICENSE

function provide(kernel) {
return function (serviceIdentifier) {
return function _provide(serviceIdentifier) {
var bindingWhenOnSyntax = kernel.bind(serviceIdentifier).to(null);

@@ -12,0 +12,0 @@ return function (target) {

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -13,3 +13,3 @@ * MIT inversify.io/LICENSE

function fluentProvide(kernel) {
return function (serviceIdentifier) {
return function _fluentProvide(serviceIdentifier) {
var bindingWhenOnSyntax = kernel.bind(serviceIdentifier).to(null);

@@ -16,0 +16,0 @@ var provideInWhenOnSyntax = new provide_in_when_on_syntax_1.default(new provide_in_syntax_1.default(bindingWhenOnSyntax), new provide_when_syntax_1.default(bindingWhenOnSyntax), new provide_on_syntax_1.default(bindingWhenOnSyntax));

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -10,3 +10,3 @@ * MIT inversify.io/LICENSE

function provide(kernel) {
return function (serviceIdentifier) {
return function _provide(serviceIdentifier) {
var bindingWhenOnSyntax = kernel.bind(serviceIdentifier).to(null);

@@ -13,0 +13,0 @@ return function (target) {

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

/**
* inversify-binding-decorators v.1.0.0-alpha.1 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* inversify-binding-decorators v.1.0.0-alpha.2 - An utility that allows developers to declare InversifyJS bindings using ES2016 decorators
* Copyright (c) 2015 Remo H. Jansen <remo.jansen@wolksoftware.com> (http://www.remojansen.com)

@@ -4,0 +4,0 @@ * MIT inversify.io/LICENSE

{
"name": "inversify-binding-decorators",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"description": "An utility that allows developers to declare InversifyJS bindings using ES2016 decorators",
"main": "index.js",
"main": "lib/index.js",
"jsnext:main": "es/index.js",
"scripts": {

@@ -7,0 +8,0 @@ "test": "gulp",

@@ -6,3 +6,3 @@ # inversify-binding-decorators

[![codecov.io](https://codecov.io/github/inversify/inversify-binding-decorators/coverage.svg?branch=master)](https://codecov.io/github/inversify/inversify-binding-decorators?branch=master)
[![npm version](https://badge.fury.io/js/inversify-binding-decorators.svg)](http://badge.fury.io/js/inversify)
[![npm version](https://badge.fury.io/js/inversify-binding-decorators.svg)](http://badge.fury.io/js/inversify-binding-decorators)
[![Dependencies](https://david-dm.org/inversify/inversify-binding-decorators.svg)](https://david-dm.org/inversify/inversify-binding-decorators#info=dependencies)

@@ -27,5 +27,4 @@ [![img](https://david-dm.org/inversify/inversify-binding-decorators/dev-status.svg)](https://david-dm.org/inversify/inversify-binding-decorators/#info=devDependencies)

```
/// <reference path="node_modules/inversify/type_definitions/inversify/inversify.d.ts" />
/// <reference path="node_modules/inversify-binding-decorators/type_definitions/inversify-binding-decorators.d.ts" />
/// <reference path="node_modules/reflect-metadata/reflect-metadata.d.ts" />
/// <reference path="node_modules/inversify-binding-decorators/type_definitions/inversify-binding-decorators.d.ts" />
```

@@ -69,3 +68,3 @@

@provide()
@provide(Katana)
class Katana implements IKatana {

@@ -77,3 +76,3 @@ public hit() {

@provide()
@provide(Shuriken)
class Shuriken implements IShuriken {

@@ -89,6 +88,6 @@ public throw() {

### Using classes, string literals & symbols as identifiers
When you invoke `@provide` without any arguments:
When you invoke `@provide` using classes:
```ts
@provide()
@provide(Katana)
class Katana {

@@ -100,3 +99,3 @@ public hit() {

@provide()
@provide(Ninja)
class Ninja {

@@ -103,0 +102,0 @@ private _katana: Katana;

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

// Type definitions for inversify 1.0.0-alpha.1
// Type definitions for inversify 1.0.0-alpha.2
// Project: https://github.com/inversify/inversify-binding-decorators

@@ -3,0 +3,0 @@ // Definitions by: inversify <https://github.com/inversify/>

Sorry, the diff of this file is too big to display

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc