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

core-decorators

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-decorators - npm Package Compare versions

Comparing version 0.0.13 to 0.1.0

lib/autobind.js

15

package.json
{
"name": "core-decorators",
"version": "0.0.13",
"version": "0.1.0",
"description": "Library of ES7 decorators inspired by languages that come with built-ins like @override, @deprecated, etc",
"main": "src/core-decorators.js",
"main": "lib/core-decorators.js",
"files": ["lib", "src", "README.md", "LICENSE"],
"scripts": {
"test": "mocha --require babel/register 'src/**/*.spec.js'"
"build": "babel --stage 0 --out-dir lib src",
"test": "npm run build && mocha --require babel/polyfill 'lib/**/*.spec.js'"
},

@@ -15,4 +17,5 @@ "repository": {

"es6",
"es6",
"es7",
"es2015",
"es2016",
"babel",

@@ -32,6 +35,6 @@ "decorators",

"devDependencies": {
"babel": "^5.2.16",
"mocha": "^2.2.4",
"babel": "^5.4.7",
"mocha": "^2.2.5",
"must": "^0.12.0"
}
}

6

README.md

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

# core-decorators.js
# core-decorators.js [![Build Status](https://travis-ci.org/jayphelps/core-decorators.js.svg?branch=master)](https://travis-ci.org/jayphelps/core-decorators.js)
Library of ES7 decorators inspired by languages that come with built-ins like @​override, @​deprecate, etc, similar to [pre-defined Annotations in Java](https://docs.oracle.com/javase/tutorial/java/annotations/predefined.html). Note that unlike Java annotations, decorators are functions which are applied at runtime.

@@ -65,3 +65,3 @@

kickDogHard() {}
@deprecate('We stopped animal abuse', { url: 'http://humanesociety.org/issues/abuse_neglect/' })

@@ -98,3 +98,3 @@ kickDogHarder() {}

kickDog() {}
@suppressWarnings

@@ -101,0 +101,0 @@ kickDogWithoutWarning() {

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