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

ember-cli-simple-store

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-simple-store - npm Package Compare versions

Comparing version 0.8.5 to 0.9.0

21

addon/store.js

@@ -76,3 +76,3 @@ import Ember from "ember";

}
return this._findByIdComputed(type, options);
return this._findById(type, options);
},

@@ -83,14 +83,2 @@ findOne: function(type) {

},
_findByIdComputed: function(type, id) {
var actualId = this._parseAndTransformId(id);
return Ember.ObjectProxy.extend({
content: function() {
var filter_value = this.get("filter_value");
return this.get("source").filterBy("id", filter_value).objectAt(0);
}.property("source.[]")
}).create({
filter_value: actualId,
source: this._findAll(type)
});
},
_findById: function(type, id) {

@@ -129,9 +117,2 @@ var identityMap = identityMapForType(type, this);

});
},
_parseAndTransformId: function(id) {
var numberId = parseInt(id, 10);
if (numberId && numberId.toString().length === id.toString().length) {
return numberId;
}
return id;
}

@@ -138,0 +119,0 @@ });

2

package.json
{
"name": "ember-cli-simple-store",
"version": "0.8.5",
"version": "0.9.0",
"description": "ember-cli addon that provides a simple identity map for ember.js web applications",

@@ -5,0 +5,0 @@ "directories": {

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