expand-path
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -75,2 +75,7 @@ (function() { | ||
} | ||
if (consumer.str) { | ||
paths = paths.map(_extendStr.bind(null, consumer.str)); | ||
} | ||
return paths; | ||
@@ -77,0 +82,0 @@ } |
@@ -1,1 +0,1 @@ | ||
!function(){var a=function(a){this.str=a};a.prototype._updateString=function(a){this.str=this.str.replace(a,"")},a.prototype.consumeTill=function(a,b){var c=this.str.substring(0,this.str.indexOf(a)+(b?1:0));return this._updateString(c),c},a.prototype.consume=function(a){var b=this.str.match(a);if(b)return this._updateString(a),b[0]},"object"==typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&(window.Consumed=a)}(),function(){var a="undefined"!=typeof module&&this.module!==module,b=a?require("consumed"):window.Consumed,c={"[":"]","{":"}","<":">"},d=function(a,b){for(var c=0;c<b.length;c++)if(a.indexOf(b[c])>-1)return b[c]},e=function(a,b){return b+=a},f=function(a,b,c){return b.concat(a.map(e.bind(null,c)))},g=function(a){var g=new b(a),h=d(a,["{","[","<"]);if(h){for(var i=[""];g.str.indexOf(h)>-1;){var j=g.consumeTill(h);j&&(i=i.map(e.bind(null,j)));var k=g.consumeTill(c[h],!0),l=k.replace(h,"").replace(c[h],"").split(/\s*,\s*/g);i=l.reduce(f.bind(null,i),[])}return i}return[a]};a?module.exports=g:window.expandPath=g}(); | ||
!function(){var a=function(a){this.str=a};a.prototype._updateString=function(a){this.str=this.str.replace(a,"")},a.prototype.consumeTill=function(a,b){var c=this.str.substring(0,this.str.indexOf(a)+(b?1:0));return this._updateString(c),c},a.prototype.consume=function(a){var b=this.str.match(a);if(b)return this._updateString(a),b[0]},"object"==typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&(window.Consumed=a)}(),function(){var a="undefined"!=typeof module&&this.module!==module,b=a?require("consumed"):window.Consumed,c={"[":"]","{":"}","<":">"},d=function(a,b){for(var c=0;c<b.length;c++)if(a.indexOf(b[c])>-1)return b[c]},e=function(a,b){return b+=a},f=function(a,b,c){return b.concat(a.map(e.bind(null,c)))},g=function(a){var g=new b(a),h=d(a,["{","[","<"]);if(h){for(var i=[""];g.str.indexOf(h)>-1;){var j=g.consumeTill(h);j&&(i=i.map(e.bind(null,j)));var k=g.consumeTill(c[h],!0),l=k.replace(h,"").replace(c[h],"").split(/\s*,\s*/g);i=l.reduce(f.bind(null,i),[])}return g.str&&(i=i.map(e.bind(null,g.str))),i}return[a]};a?module.exports=g:window.expandPath=g}(); |
@@ -43,2 +43,7 @@ (function() { | ||
} | ||
if (consumer.str) { | ||
paths = paths.map(_extendStr.bind(null, consumer.str)); | ||
} | ||
return paths; | ||
@@ -45,0 +50,0 @@ } |
{ | ||
"name": "expand-path", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Super light-weight brace expansion for node", | ||
@@ -38,5 +38,5 @@ "main": "lib/expand-path.js", | ||
"grunt-contrib-concat": "^1.0.1", | ||
"grunt-contrib-uglify": "^2.0.0", | ||
"grunt-contrib-uglify": "^3.0.0", | ||
"grunt-contrib-watch": "^1.0.0", | ||
"grunt-eslint": "^19.0.0", | ||
"grunt-eslint": "^20.0.0", | ||
"grunt-mocha-test": "^0.13.2", | ||
@@ -50,3 +50,3 @@ "grunt-open": "^0.2.3", | ||
"mocha-given": "^0.1.3", | ||
"should": "^11.1.2", | ||
"should": "^12.0.0", | ||
"task-master": "^2.2.1" | ||
@@ -53,0 +53,0 @@ }, |
@@ -59,3 +59,3 @@ [![Build Status](https://travis-ci.org/tandrewnichols/expand-path.png)](https://travis-ci.org/tandrewnichols/expand-path) [![downloads](http://img.shields.io/npm/dm/expand-path.svg)](https://npmjs.org/package/expand-path) [![npm](http://img.shields.io/npm/v/expand-path.svg)](https://npmjs.org/package/expand-path) [![Code Climate](https://codeclimate.com/github/tandrewnichols/expand-path/badges/gpa.svg)](https://codeclimate.com/github/tandrewnichols/expand-path) [![Test Coverage](https://codeclimate.com/github/tandrewnichols/expand-path/badges/coverage.svg)](https://codeclimate.com/github/tandrewnichols/expand-path) [![dependencies](https://david-dm.org/tandrewnichols/expand-path.png)](https://david-dm.org/tandrewnichols/expand-path) ![Size](https://img.shields.io/badge/size-1.7kb-brightgreen.svg) | ||
var expand = require('expand-path'); | ||
var list = expand('foo/bar/[baz,quux]/hello/world[.js,spec-coffee]'); | ||
var list = expand('foo/bar/[baz,quux]/hello/world[.js,-spec.coffee]'); | ||
@@ -62,0 +62,0 @@ /* |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18185
361
0
26