New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lodash-decorators

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-decorators - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

bind/bindAll.js

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

return (0, _utilsWrapConstructor2['default'])(properties[0], function (Ctor) {
(0, _bindAllClassMethods2['default'])(this, methods.length ? methods : null);
for (var _len3 = arguments.length, args = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {

@@ -60,4 +62,2 @@ args[_key3 - 1] = arguments[_key3];

(0, _bindAllClassMethods2['default'])(this, methods.length ? methods : null);
return Ctor.apply(this, args);

@@ -64,0 +64,0 @@ });

@@ -35,4 +35,4 @@ 'use strict';

function bindAllClassMethods(object) {
var methods = arguments[1] === undefined ? null : arguments[1];
var source = arguments[2] === undefined ? object : arguments[2];
var methods = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
var source = arguments.length <= 2 || arguments[2] === undefined ? object : arguments[2];
return (function () {

@@ -39,0 +39,0 @@ var usePick = Array.isArray(methods);

@@ -131,6 +131,2 @@ 'use strict';

return function decoratorApplicator(target, name, descriptor, method, applicator, instanceMap) {
for (var _len2 = arguments.length, args = Array(_len2 > 6 ? _len2 - 6 : 0), _key2 = 6; _key2 < _len2; _key2++) {
args[_key2 - 6] = arguments[_key2];
}
var targetName = resolveTargetName(forcedTargetName, target, name, descriptor);

@@ -145,2 +141,6 @@

for (var _len2 = arguments.length, args = Array(_len2 > 6 ? _len2 - 6 : 0), _key2 = 6; _key2 < _len2; _key2++) {
args[_key2 - 6] = arguments[_key2];
}
descriptor[targetName] = _Applicator2['default'].invoke.apply(_Applicator2['default'], [applicator, method, target, targetMethod].concat(args));

@@ -267,7 +267,7 @@ (0, _utilsCopyMetaData2['default'])(descriptor[targetName], targetMethod);

function createDecoratorFactory(executeFn) {
var modifierFn = arguments[1] === undefined ? _lodashUtilityIdentity2['default'] : arguments[1];
var createInstanceMap = arguments[2] === undefined ? false : arguments[2];
var modifierFn = arguments.length <= 1 || arguments[1] === undefined ? _lodashUtilityIdentity2['default'] : arguments[1];
var createInstanceMap = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2];
return function createDecorator(method) {
var applicator = arguments[1] === undefined ? applicators.pre : arguments[1];
var applicator = arguments.length <= 1 || arguments[1] === undefined ? applicators.pre : arguments[1];

@@ -292,6 +292,2 @@ var instanceMap = createInstanceMap ? new _utilsCompositeKeyWeakMap2['default']() : null;

function wrapDecoratorWithAccessors(instance, decorator, method, applicator) {
for (var _len5 = arguments.length, args = Array(_len5 > 4 ? _len5 - 4 : 0), _key5 = 4; _key5 < _len5; _key5++) {
args[_key5 - 4] = arguments[_key5];
}
// For an instance decorator provide a way to apply to the proto instead of instance and vice-versa

@@ -298,0 +294,0 @@ var accessors = {

@@ -9,3 +9,3 @@ "use strict";

function configurableWrapper() {
var configurable = arguments[0] === undefined ? true : arguments[0];
var configurable = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];

@@ -12,0 +12,0 @@ return function configurableDecorator(target, name, descriptor) {

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

return function () {
deprecated.methodAction(fn);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {

@@ -29,4 +31,2 @@ args[_key] = arguments[_key];

deprecated.methodAction(fn);
return fn.apply(this, args);

@@ -47,2 +47,4 @@ };

return (0, _utilsWrapConstructor2['default'])(target, function (Ctor) {
deprecated.classAction(target);
for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {

@@ -52,4 +54,2 @@ args[_key2 - 1] = arguments[_key2];

deprecated.classAction(target);
return Ctor.apply(this, args);

@@ -85,3 +85,3 @@ });

function warn() {
var message = arguments[0] === undefined ? '' : arguments[0];
var message = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];

@@ -88,0 +88,0 @@ if (console && console.warn) {

@@ -9,3 +9,3 @@ "use strict";

function enumerableWrapper() {
var enumerable = arguments[0] === undefined ? true : arguments[0];
var enumerable = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];

@@ -12,0 +12,0 @@ return function enumerableDecorator(target, name, descriptor) {

@@ -16,3 +16,3 @@ 'use strict';

exports['default'] = (0, _decoratorFactory.createDecorator)(function returnsArg(fn) {
var index = arguments[1] === undefined ? 0 : arguments[1];
var index = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];

@@ -19,0 +19,0 @@ return (0, _utilsReturnAtIndex2['default'])(fn, index);

@@ -9,3 +9,3 @@ "use strict";

function writableWrapper() {
var writable = arguments[0] === undefined ? true : arguments[0];
var writable = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];

@@ -12,0 +12,0 @@ return function writableDecorator(target, name, descriptor) {

@@ -5,3 +5,3 @@ {

"description": "A collection of decorators using lodash at it's core.",
"version": "1.0.4",
"version": "1.0.5",
"engines": {

@@ -8,0 +8,0 @@ "node": ">=0.12.0"

@@ -34,3 +34,3 @@ 'use strict';

function assignAll(to, from) {
var excludes = arguments[2] === undefined ? [] : arguments[2];
var excludes = arguments.length <= 2 || arguments[2] === undefined ? [] : arguments[2];

@@ -37,0 +37,0 @@ var names = _lodashArrayWithout2['default'].apply(undefined, [Object.getOwnPropertyNames(from)].concat(_toConsumableArray(excludes)));

@@ -9,3 +9,3 @@ 'use strict';

function log() {
var message = arguments[0] === undefined ? '' : arguments[0];
var message = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];

@@ -12,0 +12,0 @@ return 'lodash-decorators -> ' + message;

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