New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-storage

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-storage - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

History.md

4

bower.json
{
"name": "angular-storage",
"version": "0.0.2",
"name": "a0-angular-storage",
"version": "0.0.3",
"authors": [

@@ -5,0 +5,0 @@ {

{
"name": "angular-storage",
"version": "0.0.2",
"version": "0.0.3",
"author": {

@@ -5,0 +5,0 @@ "name": "Martin Gontovnikas",

@@ -17,3 +17,3 @@ # angular-storage

````bash
bower install angular-storage
bower install a0-angular-storage
````

@@ -32,3 +32,3 @@

````js
angular.module('app', [])
angular.module('app', ['angular-storage'])
.controller('Controller', function(store) {

@@ -67,2 +67,6 @@ var myObj = {

## Usages
This library is used in [auth0-angular](https://github.com/auth0/auth0-angular)
## Contributing

@@ -69,0 +73,0 @@

@@ -12,7 +12,9 @@ angular.module('angular-storage.store', ['angular-storage.storage'])

this.get = function(name) {
if (this.inMemoryCache[name]) {
if (name in this.inMemoryCache) {
return this.inMemoryCache[name];
}
var saved = storage.get(name);
return saved ? JSON.parse(saved) : null;
var obj = saved ? JSON.parse(saved) : null;
this.inMemoryCache[name] = obj;
return obj;
};

@@ -19,0 +21,0 @@

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