Socket
Socket
Sign inDemoInstall

decorative

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decorative - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

3

package.json
{
"name": "decorative",
"version": "0.1.4",
"version": "0.1.5",
"repository": "https://github.com/kyr0/decorative",

@@ -20,2 +20,3 @@ "description": "decorative.js is an ES7 micro-framework promoting @decorator pattern-driven app development.",

"babel-loader": "^6.1.0",
"babel-plugin-transform-decorators": "^6.1.4",
"babel-plugin-syntax-class-properties": "^6.1.4",

@@ -22,0 +23,0 @@ "babel-preset-es2015": "^6.1.4",

@@ -90,9 +90,3 @@ decorative.js

test: /\.js$/,
loader: "babel-loader",
query: {
stage: 1, // <- important
optional: [
"es7.decorators" // <- important
]
}
loader: "babel-loader"
}

@@ -108,2 +102,12 @@ ]

Additionally create a ```.babelrc``` file in your projects root directory (next to Gruntfile.js)
and put it like:
{
"presets": ["es2015", "stage-0"],
"plugins": ["transform-decorators", "syntax-class-properties"]
}
This configures Babel.js to parse/transform the full spectrum of ES6+ features.
## Decorators

@@ -110,0 +114,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