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

decorator-decorator

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decorator-decorator - npm Package Compare versions

Comparing version 0.1.11 to 0.1.13

2

build/index.js

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

!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b(require("reflect")):"function"==typeof define&&define.amd?define(["reflect"],b):a.DecoratorDecorator=b(a.Reflect)}(this,function(a){"use strict";a="default"in a?a["default"]:a;var b=function(a){var b={target:a[0]};return a.length>1&&(b.prop=a[1]),a.length>2&&(b.descriptor=a[2]),b},c=function(c){var d=a.construct(c),e=function(a){var b=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];return d.decorate.apply(d,[a].concat(b))};return function(){for(var a=arguments.length,c=Array(a),d=0;a>d;d++)c[d]=arguments[d];return c[0]instanceof Function?e(b(c)):function(){for(var a=arguments.length,d=Array(a),f=0;a>f;f++)d[f]=arguments[f];return e(b(d),c)}}};return c});
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b(require("reflect")):"function"==typeof define&&define.amd?define(["reflect"],b):a.DecoratorDecorator=b(a.Reflect)}(this,function(a){"use strict";a="default"in a?a["default"]:a;var b=function(a){var b={target:a[0]};return a.length>1&&(b.prop=a[1]),a.length>2&&(b.descriptor=a[2]),b},c=function(c){var d=a.construct(c),e=function(a){var b=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];return d.decorate.apply(d,[a].concat(b))};return function(){for(var a=arguments.length,c=Array(a),d=0;a>d;d++)c[d]=arguments[d];return function(){for(var a=arguments.length,d=Array(a),f=0;a>f;f++)d[f]=arguments[f];return e(b(d),c)}}};return c});
{
"name": "decorator-decorator",
"version": "0.1.11",
"version": "0.1.13",
"description": "An ES7 decorator to turn classes into decorators",

@@ -12,7 +12,8 @@ "main": "build/index.js",

"jspm:install": "./node_modules/.bin/jspm install",
"postinstall": "npm run jspm:install",
"prebuild": "npm run clean && npm run test",
"build": "./node_modules/.bin/jspm build decorator-decorator - reflect build/index.js --minify --format umd --global-name DecoratorDecorator --skip-source-maps",
"prepublish": "npm run build",
"test": "jspm run tests | ./node_modules/.bin/faucet",
"test:run": "./node_modules/.bin/jspm run tests",
"pretest": "./node_modules/.bin/jspm install",
"test": "npm run test:run | ./node_modules/.bin/faucet",
"start": "./node_modules/.bin/jspm-server --port=45345 src/"

@@ -72,2 +73,16 @@ },

},
"npm:debug@2.2.0": {
"main": "browser.js",
"jspmNodeConversion": false,
"format": "cjs",
"map": {
"./browser.js": {
"node": "./node.js"
},
"fs": "@node/fs",
"net": "@node/net",
"tty": "@node/tty",
"util": "@node/util"
}
},
"npm:inherits@2.0.1": {

@@ -77,2 +92,6 @@ "ignore": [

]
},
"npm:ms@0.7.1": {
"jspmNodeConversion": false,
"format": "cjs"
}

@@ -79,0 +98,0 @@ }

@@ -14,3 +14,2 @@ # decorator-decorator

* The class must contain a `decorate` method
* The first parameter to the decorator can't be a function

@@ -21,3 +20,3 @@ ```javascript

@decocrator
@decorator
class Foo {

@@ -31,3 +30,3 @@ decorate({target, prop, descriptor}, param1, param2) {

@Foo
@Foo('param1', 'param2')
class Bar {

@@ -34,0 +33,0 @@ }

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