Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

Commit

Permalink
2.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
shaungrady committed Sep 22, 2016
1 parent b77e453 commit 1a8a407
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 14 deletions.
18 changes: 13 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* angular-http-etag v2.0.11
* angular-http-etag v2.0.12
* Shaun Grady (http://shaungrady.com), 2016
* https://github.com/shaungrady/angular-http-etag
* Module Format: CommonJS
Expand Down Expand Up @@ -491,8 +491,12 @@ function cacheAdaptersConfig (httpEtagProvider) {
return cacheId
},
setItem: function setItem (cacheId, itemKey, value) {
itemKey = cacheId + ':' + itemKey
localStorage.setItem(itemKey, JSON.stringify(value))
try {
itemKey = cacheId + ':' + itemKey
localStorage.setItem(itemKey, JSON.stringify(value))
} catch (e) {

}
},
getItem: function getItem (cacheId, itemKey) {
itemKey = cacheId + ':' + itemKey
Expand Down Expand Up @@ -524,8 +528,12 @@ function cacheAdaptersConfig (httpEtagProvider) {
return cacheId
},
setItem: function setItem (cacheId, itemKey, value) {
itemKey = cacheId + ':' + itemKey
sessionStorage.setItem(itemKey, JSON.stringify(value))
try {
itemKey = cacheId + ':' + itemKey
sessionStorage.setItem(itemKey, JSON.stringify(value))
} catch (e) {

}
},
getItem: function getItem (cacheId, itemKey) {
itemKey = cacheId + ':' + itemKey
Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-http-etag",
"version": "2.0.11",
"version": "2.0.12",
"description": "Angular module for easy ETag-based caching of $http responses",
"homepage": "https://github.com/shaungrady/angular-http-etag",
"author": "Shaun Grady (http://shaungrady.com)",
Expand Down Expand Up @@ -68,6 +68,7 @@
},
"files": [
"lib/*.js",
"release/angular-http-etag.js",
"readme.md"
]
}
18 changes: 13 additions & 5 deletions release/angular-http-etag.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* angular-http-etag v2.0.11
* angular-http-etag v2.0.12
* Shaun Grady (http://shaungrady.com), 2016
* https://github.com/shaungrady/angular-http-etag
* Module Format: Universal Module Definition
Expand Down Expand Up @@ -1044,8 +1044,12 @@ function cacheAdaptersConfig (httpEtagProvider) {
return cacheId
},
setItem: function setItem (cacheId, itemKey, value) {
itemKey = cacheId + ':' + itemKey
localStorage.setItem(itemKey, JSON.stringify(value))
try {
itemKey = cacheId + ':' + itemKey
localStorage.setItem(itemKey, JSON.stringify(value))
} catch (e) {

}
},
getItem: function getItem (cacheId, itemKey) {
itemKey = cacheId + ':' + itemKey
Expand Down Expand Up @@ -1077,8 +1081,12 @@ function cacheAdaptersConfig (httpEtagProvider) {
return cacheId
},
setItem: function setItem (cacheId, itemKey, value) {
itemKey = cacheId + ':' + itemKey
sessionStorage.setItem(itemKey, JSON.stringify(value))
try {
itemKey = cacheId + ':' + itemKey
sessionStorage.setItem(itemKey, JSON.stringify(value))
} catch (e) {

}
},
getItem: function getItem (cacheId, itemKey) {
itemKey = cacheId + ':' + itemKey
Expand Down
2 changes: 1 addition & 1 deletion release/angular-http-etag.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/angular-http-etag.min.js.map

Large diffs are not rendered by default.

0 comments on commit 1a8a407

Please sign in to comment.