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.1 to 0.0.2

2

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

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

@@ -14,3 +14,3 @@ (function() {

angular.module('angular-storage.storage', [])
.service('storage', function($window) {
.service('storage', ["$window", function($window) {
if ($window.localStorage) {

@@ -38,7 +38,7 @@ this.set = function(what, value) {

}
});
}]);
angular.module('angular-storage.store', ['angular-storage.storage'])
.service('store', function(storage) {
.service('store', ["storage", function(storage) {

@@ -66,5 +66,5 @@ this.inMemoryCache = {};

});
}]);
}());

@@ -1,1 +0,1 @@

!function(){angular.module("angular-storage",["angular-storage.store"]),angular.module("angular-storage.storage",[]).service("storage",function(e){if(e.localStorage)this.set=function(t,r){return e.localStorage.setItem(t,r)},this.get=function(t){return e.localStorage.getItem(t)},this.remove=function(t){return e.localStorage.removeItem(t)};else{var t=$injector.get("$cookieStore");this.set=function(e,r){return t.put(e,r)},this.get=function(e){return t.get(e)},this.remove=function(e){return t.remove(e)}}}),angular.module("angular-storage.store",["angular-storage.storage"]).service("store",function(e){this.inMemoryCache={},this.set=function(t,r){this.inMemoryCache[t]=r,e.set(t,JSON.stringify(r))},this.get=function(t){if(this.inMemoryCache[t])return this.inMemoryCache[t];var r=e.get(t);return r?JSON.parse(r):null},this.remove=function(t){this.inMemoryCache[t]=null,e.remove(t)}})}();
!function(){angular.module("angular-storage",["angular-storage.store"]),angular.module("angular-storage.storage",[]).service("storage",["$window",function(e){if(e.localStorage)this.set=function(t,r){return e.localStorage.setItem(t,r)},this.get=function(t){return e.localStorage.getItem(t)},this.remove=function(t){return e.localStorage.removeItem(t)};else{var t=$injector.get("$cookieStore");this.set=function(e,r){return t.put(e,r)},this.get=function(e){return t.get(e)},this.remove=function(e){return t.remove(e)}}}]),angular.module("angular-storage.store",["angular-storage.storage"]).service("store",["storage",function(e){this.inMemoryCache={},this.set=function(t,r){this.inMemoryCache[t]=r,e.set(t,JSON.stringify(r))},this.get=function(t){if(this.inMemoryCache[t])return this.inMemoryCache[t];var r=e.get(t);return r?JSON.parse(r):null},this.remove=function(t){this.inMemoryCache[t]=null,e.remove(t)}}])}();

@@ -6,2 +6,3 @@ var gulp = require('gulp'),

rename = require('gulp-rename'),
ngAnnotate = require('gulp-ng-annotate'),
sourceFiles = [

@@ -19,2 +20,3 @@ 'src/angularStorage/angularStorage.prefix',

.pipe(concat('angular-storage.js'))
.pipe(ngAnnotate())
.pipe(gulp.dest('./dist/'))

@@ -65,2 +67,2 @@ .pipe(uglify())

gulp.task('default', ['test', 'build']);
gulp.task('dist', ['test', 'build', 'test-dist-concatenated', 'test-dist-minified']);
gulp.task('dist', ['test-dist-concatenated', 'test-dist-minified']);
{
"name": "angular-storage",
"version": "0.0.1",
"version": "0.0.2",
"author": {

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

"chai-jquery": "^1.2.3",
"karma-mocha-reporter": "^0.3.1",
"gulp": "^3.8.7",
"gulp-concat": "^2.3.4",
"gulp-ng-annotate": "^0.3.3",
"gulp-rename": "^1.2.0",

@@ -25,2 +25,3 @@ "gulp-uglify": "^0.3.1",

"karma-mocha": "^0.1.8",
"karma-mocha-reporter": "^0.3.1",
"karma-phantomjs-launcher": "^0.1.4",

@@ -27,0 +28,0 @@ "karma-sinon-chai": "^0.2.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