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 0.0.6 to 0.0.7

dist/bind.js

17

dist/decoratorFactory.js

@@ -67,2 +67,9 @@ 'use strict';

}))));
},
partialed: function partialed(fn, target, value) {
for (var _len6 = arguments.length, args = Array(_len6 > 3 ? _len6 - 3 : 0), _key6 = 3; _key6 < _len6; _key6++) {
args[_key6 - 3] = arguments[_key6];
}
return _lodash.partial.apply(undefined, [fn, value].concat(args));
}

@@ -91,4 +98,4 @@ };

function wrapper() {
for (var _len6 = arguments.length, args = Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
args[_key6] = arguments[_key6];
for (var _len7 = arguments.length, args = Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
args[_key7] = arguments[_key7];
}

@@ -118,4 +125,4 @@

function wrapper() {
for (var _len7 = arguments.length, args = Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
args[_key7] = arguments[_key7];
for (var _len8 = arguments.length, args = Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
args[_key8] = arguments[_key8];
}

@@ -134,3 +141,3 @@

return { get: getter };
return { get: getter, configurable: true };

@@ -137,0 +144,0 @@ function getter() {

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

var _bind = require('./bind');
var _bind2 = _interopRequireDefault(_bind);
var _decoratorFactory = require('./decoratorFactory');

@@ -31,7 +35,8 @@

proto: {
single: ['rearg', 'negate'],
pre: ['curry', 'curryRight'],
single: ['spread', 'rearg', 'negate'],
pre: ['ary', 'curry', 'curryRight', 'restParam'],
partial: ['partial', 'partialRight'],
wrap: ['wrap'],
compose: ['compose', 'flow']
compose: ['compose', 'flow', 'flowRight', 'backflow'],
partialed: ['delay', 'defer']
}

@@ -53,3 +58,6 @@ };

// All other decorators
_lodash2['default'].assign(result, { getter: _getter2['default'] });
_lodash2['default'].assign(result, {
getter: _getter2['default'],
bind: _bind2['default']
});

@@ -56,0 +64,0 @@ // Provide aliases @memoize => @Memoize

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

import {argv} from 'yargs';
import R from 'ramda';
import _ from 'lodash';

@@ -9,0 +8,0 @@

{
"name": "lodash-decorators",
"author": "Steven Sojka",
"version": "0.0.6",
"version": "0.0.7",
"engines": {

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

'use strict';
import { isFunction } from 'lodash';
import { isFunction, partial } from 'lodash';
import settings from './settings';

@@ -22,3 +22,4 @@

// Calls the function with key functions and the value
compose: (fn, target, value, ...args) => fn(value, ...args.map(method => target[method]))
compose: (fn, target, value, ...args) => fn(value, ...args.map(method => target[method])),
partialed: (fn, target, value, ...args) => partial(fn, value, ...args)
};

@@ -72,3 +73,3 @@

return { get: getter };
return { get: getter, configurable: true };

@@ -75,0 +76,0 @@ function getter() {

@@ -5,2 +5,3 @@ 'use strict';

import getter from './getter';
import bind from './bind';
import { createDecorator, createInstanceDecorator } from './decoratorFactory';

@@ -26,2 +27,3 @@ import settings from './settings';

single: [
'spread',
'rearg',

@@ -31,4 +33,6 @@ 'negate'

pre: [
'ary',
'curry',
'curryRight'
'curryRight',
'restParam'
],

@@ -44,3 +48,9 @@ partial: [

'compose',
'flow'
'flow',
'flowRight',
'backflow'
],
partialed: [
'delay',
'defer'
]

@@ -65,3 +75,6 @@ }

// All other decorators
_.assign(result, { getter });
_.assign(result, {
getter,
bind
});

@@ -68,0 +81,0 @@ // Provide aliases @memoize => @Memoize

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