Comparing version 0.5.0 to 0.5.1
@@ -18,5 +18,6 @@ { | ||
"main": "patrun.js", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"scripts": { | ||
"test": "./test.sh", | ||
"test": "jasmine-node test", | ||
"browser-test": "./test.sh", | ||
"build": "./build.sh" | ||
@@ -32,8 +33,9 @@ }, | ||
"dependencies": { | ||
"lodash": "3.10.0", | ||
"lodash": "4.15.0", | ||
"gex": "0.2.2" | ||
}, | ||
"devDependencies": { | ||
"jasmine-node": "1.14.5", | ||
"serve": "1.4.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
/* Copyright (c) 2013-2015 Richard Rodger, MIT License, https://github.com/rjrodger/patrun */ | ||
/* Copyright (c) 2013-2016 Richard Rodger, MIT License, https://github.com/rjrodger/patrun */ | ||
@@ -120,4 +120,4 @@ ;(function() { | ||
var g = keymap.g = keymap.g || {} | ||
var ga = g[key] = g[key] || [] | ||
var g = (keymap.g = keymap.g || {}) | ||
var ga = (g[key] = g[key] || []) | ||
ga.push( gexer ) | ||
@@ -188,5 +188,13 @@ ga.sort( function(a,b) { | ||
if( exact && _.keys(foundkeys).length != patlen ) { | ||
data = null | ||
if( exact ) { | ||
if( _.keys(foundkeys).length !== patlen ) { | ||
data = null | ||
} | ||
} | ||
else { | ||
// If there's root data, return as a catch all | ||
if( null == data && void 0 !== top.d ) { | ||
data = top.d | ||
} | ||
} | ||
@@ -202,2 +210,3 @@ if( finalfind ) { | ||
self.remove = function( pat ) { | ||
@@ -204,0 +213,0 @@ var keymap = top |
@@ -38,6 +38,2 @@ # patrun | ||
Current Version: 0.5.0 | ||
Tested on: node 0.10, 0.11, 0.12, iojs, Chrome 43, Safari 7, Firefox 38 | ||
[![Build Status](https://travis-ci.org/rjrodger/patrun.png?branch=master)](https://travis-ci.org/rjrodger/patrun) | ||
@@ -44,0 +40,0 @@ |
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
32489
333
2
396
+ Addedlodash@4.15.0(transitive)
Updatedlodash@4.15.0