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

duckfactory

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

duckfactory - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

10

lib/functionArgNames.js

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

});
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/** Returns an array with the names of the direct names of a function (e.g. for the function a = (b, c) => {}

@@ -25,4 +32,7 @@ * getFunctionArgNames(a) will return ["b", "c"]).

var getFunctionRefsNames = function getFunctionRefsNames(func, ref) {
console.log("func:", func.toString);
console.log("ref:", (0, _stringify2.default)(ref));
var pattern = new RegExp(ref + "\\.([a-zA-Z0-9_]+)[\\,\\;]", 'g');
var args = func.toString().match(pattern);
console.log("args:", (0, _stringify2.default)(args));
return args && args.map(function (arg) {

@@ -29,0 +39,0 @@ return arg.slice(ref.length + 1, arg.length - 1);

2

package.json
{
"name": "duckfactory",
"version": "1.2.5",
"version": "1.2.6",
"description": "Factory for creating redux ducks",

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

@@ -0,1 +1,9 @@

## IMPORTANT:
**A naughty bug has been discovered!** It causes a problem (loss of action creator arguments) when duckfactory is used in projects that use code mangling (code minification / uglification) for production with tools like webpack.
I'm currently working on this and will release a bugfix version when it's solved. **Until then I don't recommend using duckfactory (v1.2.6 or below) or goosefactory (version 1.2.7 or below) with production-mangled code.**
---
# Duckfactory

@@ -2,0 +10,0 @@ **Simple creation and use of redux ducks.**

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