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.2.0 to 0.3.0

lib/mixin.js

4

lib/override.js

@@ -291,5 +291,5 @@ 'use strict';

descriptor.key = key;
var superKlass = Object.getPrototypeOf(klass);
var superKlass = Object.getPrototypeOf(target);
var superDescriptor = Object.getOwnPropertyDescriptor(superKlass, key);
var reporter = new SyntaxErrorReporter(superKlass, klass, superDescriptor, descriptor);
var reporter = new SyntaxErrorReporter(superKlass, target, superDescriptor, descriptor);

@@ -296,0 +296,0 @@ if (superDescriptor === undefined) {

{
"name": "core-decorators",
"version": "0.2.0",
"version": "0.3.0",
"description": "Library of ES7 decorators inspired by languages that come with built-ins like @override, @deprecated, etc",

@@ -13,4 +13,4 @@ "main": "lib/core-decorators.js",

"scripts": {
"build": "babel --stage 0 --out-dir lib src",
"test": "npm run build && mocha --require babel/polyfill 'lib/**/*.spec.js'"
"build": "babel --out-dir lib src",
"test": "npm run build && mocha --compilers js:babel/register --require babel/polyfill 'test/**/*.spec.js'"
},

@@ -17,0 +17,0 @@ "repository": {

@@ -31,2 +31,3 @@ # core-decorators.js [![Build Status](https://travis-ci.org/jayphelps/core-decorators.js.svg?branch=master)](https://travis-ci.org/jayphelps/core-decorators.js)

* @throttle
* @assertArguments(arg1 => arg1, arg2 => arg2)
* @private

@@ -145,3 +146,3 @@

```js
import { deprecate } from 'core-decorators';
import { debounce } from 'core-decorators';

@@ -148,0 +149,0 @@ class Editor {

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

import { decorate } from './private/utils';
import { decorate } from './private/utils';

@@ -226,5 +226,5 @@ const GENERIC_FUNCTION_ERROR = '{child} does not properly override {parent}';

descriptor.key = key;
const superKlass = Object.getPrototypeOf(klass);
const superKlass = Object.getPrototypeOf(target);
const superDescriptor = Object.getOwnPropertyDescriptor(superKlass, key);
const reporter = new SyntaxErrorReporter(superKlass, klass, superDescriptor, descriptor);
const reporter = new SyntaxErrorReporter(superKlass, target, superDescriptor, descriptor);

@@ -231,0 +231,0 @@ if (superDescriptor === undefined) {

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