Socket
Socket
Sign inDemoInstall

ampersand-state

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ampersand-state - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

test/main.js

7

ampersand-state.js

@@ -18,3 +18,2 @@ // (c) 2013 Henrik Joreteg

options._attrs = attrs;
this._namespace = options.namespace;
this._initted = false;

@@ -52,2 +51,4 @@ this._values = {};

namespaceAttribute: 'namespace',
// can be allow, ignore, reject

@@ -60,2 +61,6 @@ extraProperties: 'ignore',

getNamespace: function () {
return this.get(this.namespaceAttribute);
},
// stubbed out to be overwritten

@@ -62,0 +67,0 @@ initialize: function () {

{
"name": "ampersand-state",
"description": "An observable, extensible state object with derived watchable properties.",
"version": "0.2.1",
"version": "0.3.0",
"author": "Henrik Joreteg <henrik@andyet.net>",

@@ -14,3 +14,3 @@ "bugs": {

"devDependencies": {
"nodeunit": "~0.8.5"
"tape": "~2.11.0"
},

@@ -30,4 +30,17 @@ "homepage": "https://github.com/ampersandjs/ampersand-state",

"scripts": {
"test": "nodeunit test/"
"test": "node test/main.js"
},
"testling": {
"files": "test/*.js",
"browsers": [
"ie/9..latest",
"chrome/22..latest",
"firefox/16..latest",
"safari/5.1..latest",
"opera/11.0..latest",
"iphone/6..latest",
"ipad/6..latest",
"android-browser/latest"
]
}
}

@@ -13,2 +13,7 @@ # ampersand-state

## browser support
[![browser support](https://ci.testling.com/ampersandjs/ampersand-state.png)
](https://ci.testling.com/ampersandjs/ampersand-state)
## install

@@ -15,0 +20,0 @@

test/basics.js
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc