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

anye

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anye - npm Package Compare versions

Comparing version 0.5.0 to 0.6.1

9

lib/anye.js

@@ -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

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