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.1.2 to 0.1.3

6

lib/autobind.js

@@ -54,5 +54,9 @@ 'use strict';

function autobind() {
return (0, _privateUtils.decorate)(handleDescriptor, arguments);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return (0, _privateUtils.decorate)(handleDescriptor, args);
}
module.exports = exports['default'];

6

lib/deprecate.js

@@ -13,2 +13,4 @@ 'use strict';

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }
var _privateUtils = require('./private/utils');

@@ -44,6 +46,6 @@

function deprecate() {
return (0, _privateUtils.decorate)(handleDescriptor, arguments);
function deprecate(args) {
return _privateUtils.decorate.apply(undefined, [handleDescriptor].concat(_toConsumableArray(args)));
}
module.exports = exports['default'];

@@ -101,5 +101,9 @@ 'use strict';

function memoize() {
return (0, _privateUtils.decorate)(handleDescriptor, arguments);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return (0, _privateUtils.decorate)(handleDescriptor, args);
}
module.exports = exports['default'];

@@ -307,3 +307,7 @@ 'use strict';

function override() {
return (0, _privateUtils.decorate)(handleDescriptor, arguments);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return (0, _privateUtils.decorate)(handleDescriptor, args);
}

@@ -310,0 +314,0 @@

@@ -16,5 +16,9 @@ 'use strict';

function readonly() {
return (0, _privateUtils.decorate)(handleDescriptor, arguments);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return (0, _privateUtils.decorate)(handleDescriptor, args);
}
module.exports = exports['default'];

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

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
Object.defineProperty(exports, '__esModule', {
value: true

@@ -9,3 +9,6 @@ });

exports["default"] = suppressWarnings;
exports['default'] = suppressWarnings;
var _privateUtils = require('./private/utils');
function suppressedWarningNoop() {}

@@ -30,7 +33,11 @@

function suppressWarnings() {
return decorate(handleDescriptor, arguments);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return (0, _privateUtils.decorate)(handleDescriptor, args);
}
module.exports = exports["default"];
module.exports = exports['default'];
// Warnings are currently suppressed via @suppressWarnings
{
"name": "core-decorators",
"version": "0.1.2",
"version": "0.1.3",
"description": "Library of ES7 decorators inspired by languages that come with built-ins like @override, @deprecated, etc",

@@ -5,0 +5,0 @@ "main": "lib/core-decorators.js",

@@ -44,4 +44,4 @@ import { decorate } from './private/utils';

export default function autobind() {
return decorate(handleDescriptor, arguments);
export default function autobind(...args) {
return decorate(handleDescriptor, args);
}

@@ -25,4 +25,4 @@ import { decorate } from './private/utils';

export default function deprecate() {
return decorate(handleDescriptor, arguments);
export default function deprecate(args) {
return decorate(handleDescriptor, ...args);
}

@@ -66,4 +66,4 @@ import { decorate } from './private/utils';

export default function memoize() {
return decorate(handleDescriptor, arguments);
export default function memoize(...args) {
return decorate(handleDescriptor, args);
}

@@ -241,4 +241,4 @@ import { decorate } from './private/utils';

export default function override() {
return decorate(handleDescriptor, arguments);
export default function override(...args) {
return decorate(handleDescriptor, args);
}

@@ -8,4 +8,4 @@ import { decorate } from './private/utils';

export default function readonly() {
return decorate(handleDescriptor, arguments);
export default function readonly(...args) {
return decorate(handleDescriptor, args);
}

@@ -24,4 +24,4 @@ import { decorate } from './private/utils';

export default function suppressWarnings() {
return decorate(handleDescriptor, arguments);
export default function suppressWarnings(...args) {
return decorate(handleDescriptor, args);
}
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