Comparing version 0.5.0 to 0.6.1
@@ -12,3 +12,3 @@ | ||
"use strict"; | ||
var QS, _clear, _count, _generate, _get, _raw, _set, oAnye, oDataStore, rMatchURLParam, | ||
var QS, _all, _clear, _count, _generate, _get, _raw, _set, oAnye, oDataStore, rMatchURLParam, | ||
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | ||
@@ -82,2 +82,6 @@ | ||
_all = function() { | ||
return oDataStore; | ||
}; | ||
module.exports = oAnye = { | ||
@@ -92,5 +96,6 @@ clear: _clear, | ||
raw: _raw, | ||
url: _raw | ||
url: _raw, | ||
all: _all | ||
}; | ||
oAnye.__defineGetter__("length", _count); |
{ | ||
"name": "anye", | ||
"version": "0.5.0", | ||
"version": "0.6.1", | ||
"description": "Server-agnostic named URL builder for node.js", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
"node": ">=4.0.0" | ||
}, | ||
@@ -57,7 +57,7 @@ "scripts": { | ||
"grunt-contrib-watch": "^0.6.1", | ||
"matchdep": "^0.3.0" | ||
"matchdep": "^1.0.0" | ||
}, | ||
"dependencies": { | ||
"qs": "^5.0.0" | ||
"qs": "^6.0.1" | ||
} | ||
} |
@@ -148,2 +148,16 @@ # anyè | ||
### Get all the store | ||
#### Signature | ||
```javascript | ||
Anye.all() | ||
``` | ||
#### Example | ||
```javascript | ||
Anye.all(); // will returns { "name": "/url/:id" } | ||
``` | ||
## Contributing | ||
@@ -155,2 +169,4 @@ | ||
* **2015-12-06:** version `0.6.1`, update minimal runtime version. | ||
* **2015-12-06:** version `0.6.0`, add `all` method. | ||
* **2015-09-11:** version `0.5.0`, add `raw` method. | ||
@@ -157,0 +173,0 @@ * **2014-10-07:** version `0.4.0`, add aliases, add `generate` method. |
@@ -43,2 +43,5 @@ "use strict"; | ||
// All | ||
oTest.deepEqual( Anye.all(), { "simple": "/url/", "one-param": "/url/:id", "multi-params": "/url/:id/:module" }, "Anye.all should return all the DataStore" ); | ||
// Raw url | ||
@@ -45,0 +48,0 @@ oTest.throws( function() { Anye.raw( "unknown" ); }, "Anye.raw should throws when calling an url that is not in the store." ); |
Sorry, the diff of this file is not supported yet
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
19349
153
180
+ Addedcall-bind@1.0.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedqs@6.13.1(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedside-channel@1.0.6(transitive)
- Removedqs@5.2.1(transitive)
Updatedqs@^6.0.1