machinepack-strings
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -108,6 +108,7 @@ module.exports = { | ||
catch (e) { | ||
// Recognize lodash template error (scope variable not defined) | ||
var isTplError = _.isObject(e) && (e.name === 'ReferenceError' || e.type === 'not_defined'); | ||
var missingVar = _.isArray(e.arguments) && e.arguments[0]; | ||
// In Node v0.10.x, the error will have a handy arguments array. In Node v0.12.0, we'll have to | ||
// pull the missing var from the error message, where it'll be the first word | ||
var missingVar = (_.isArray(e.arguments) && e.arguments[0]) || (e.message.split(' ')[0]); | ||
@@ -114,0 +115,0 @@ // If this is not a recognizable missing variable error, or if |
@@ -41,5 +41,5 @@ module.exports = { | ||
var token = module.exports._rack(); | ||
return exits.success(rack()); | ||
return exits.success(token); | ||
} | ||
}; |
{ | ||
"name": "machinepack-strings", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Work with strings.", | ||
@@ -51,4 +51,4 @@ "scripts": { | ||
"type": "git", | ||
"url": "" | ||
"url": "https://github.com/treelinehq/machinepack-strings.git" | ||
} | ||
} |
@@ -11,3 +11,3 @@ <h1> | ||
## Installation [![NPM version](https://badge.fury.io/js/machinepack-strings.svg)](http://badge.fury.io/js/machinepack-strings) [![Build Status](https://travis-ci.org/treelinehq/machinepack-strings.png?branch=master)](https://travis-ci.org/treelinehq/machinepack-strings) | ||
## Installation [![NPM version](https://badge.fury.io/js/machinepack-strings.svg)](http://badge.fury.io/js/machinepack-strings) [![Build Status](https://travis-ci.org/mikermcneil/machinepack-strings.png?branch=master)](https://travis-ci.org/mikermcneil/machinepack-strings) | ||
@@ -14,0 +14,0 @@ ```sh |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
67234
44
1842
0