diff --git a/.npm/package/npm-shrinkwrap.json b/.npm/package/npm-shrinkwrap.json index 6848cfb..4a0184d 100644 --- a/.npm/package/npm-shrinkwrap.json +++ b/.npm/package/npm-shrinkwrap.json @@ -1,9 +1,10 @@ { + "lockfileVersion": 1, "dependencies": { "ClientStorage": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ClientStorage/-/ClientStorage-2.1.3.tgz", - "from": "ClientStorage@2.1.3" + "integrity": "sha1-/dxf+740jhnadm4v/Df3k8e6v3Y=" } } } diff --git a/.versions b/.versions index b53586b..1bb9c87 100644 --- a/.versions +++ b/.versions @@ -1,49 +1,41 @@ -allow-deny@1.0.5 -babel-compiler@6.18.2 -babel-runtime@1.0.1 +allow-deny@1.1.0 +babel-compiler@6.24.7 +babel-runtime@1.1.1 base64@1.0.10 binary-heap@1.0.10 -blaze@2.1.8 -blaze-tools@1.0.9 -boilerplate-generator@1.0.11 +boilerplate-generator@1.3.0 callback-hook@1.0.10 check@1.2.5 -ddp@1.2.5 -ddp-client@1.3.4 -ddp-common@1.2.8 -ddp-server@1.3.14 -deps@1.0.12 +ddp@1.4.0 +ddp-client@2.2.0 +ddp-common@1.3.0 +ddp-server@2.1.1 diff-sequence@1.0.7 -ecmascript@0.7.3 -ecmascript-runtime@0.3.15 -ejson@1.0.13 +ecmascript@0.9.0 +ecmascript-runtime@0.5.0 +ecmascript-runtime-client@0.5.0 +ecmascript-runtime-server@0.5.0 +ejson@1.1.0 geojson-utils@1.0.10 -html-tools@1.0.10 -htmljs@1.0.10 id-map@1.0.9 -jquery@1.11.10 -local-test:ostrio:cstorage@2.2.0 -logging@1.1.17 -meteor@1.6.1 -minimongo@1.0.23 -modules@0.8.2 -modules-runtime@0.7.10 -mongo@1.1.17 +local-test:ostrio:cstorage@2.2.1 +logging@1.1.19 +meteor@1.8.0 +minimongo@1.4.0 +modules@0.11.0 +modules-runtime@0.9.0 +mongo@1.3.0 +mongo-dev-server@1.1.0 mongo-id@1.0.6 -npm-mongo@2.2.24 -observe-sequence@1.0.16 +npm-mongo@2.2.33 ordered-dict@1.0.9 -ostrio:cstorage@2.2.0 -promise@0.8.8 +ostrio:cstorage@2.2.1 +promise@0.10.0 random@1.0.10 -reactive-var@1.0.11 retry@1.0.9 routepolicy@1.0.12 -spacebars@1.0.12 -spacebars-compiler@1.0.12 tinytest@1.0.12 tracker@1.1.3 -ui@1.0.11 underscore@1.0.10 -webapp@1.3.15 +webapp@1.4.0 webapp-hashing@1.0.9 diff --git a/client-storage-tests.js b/client-storage-tests.js index 12de797..62c134b 100644 --- a/client-storage-tests.js +++ b/client-storage-tests.js @@ -100,8 +100,8 @@ Tinytest.add('ClientStorage - remove() - non existent value', function (test) { Tinytest.add('ClientStorage - empty() - ALL', function (test) { ClientStorage.empty(); - var setResOne = ClientStorage.set('teststorageOne', 'One'); - var setResTwo = ClientStorage.set('teststorageTwo', 'Two'); + ClientStorage.set('teststorageOne', 'One'); + ClientStorage.set('teststorageTwo', 'Two'); var removeRes = ClientStorage.empty(); test.isTrue(removeRes); @@ -113,8 +113,8 @@ Tinytest.add('ClientStorage - empty() - ALL', function (test) { Tinytest.add('ClientStorage - keys() / has() / remove() - String', function (test) { ClientStorage.empty(); - var setResOne = ClientStorage.set('teststorageOne', 'One'); - var setResTwo = ClientStorage.set('teststorageTwo', 'Two'); + ClientStorage.set('teststorageOne', 'One'); + ClientStorage.set('teststorageTwo', 'Two'); test.isTrue(!!~ClientStorage.keys().indexOf('teststorageOne')); test.isTrue(!!~ClientStorage.keys().indexOf('teststorageTwo')); @@ -235,8 +235,8 @@ Tinytest.add('ClientStorage - Cookies - remove() - non existent value', function Tinytest.add('ClientStorage - Cookies - empty() - ALL', function (test) { ClientStorageCookies.empty(); - var setResOne = ClientStorageCookies.set('teststorageOne', 'One'); - var setResTwo = ClientStorageCookies.set('teststorageTwo', 'Two'); + ClientStorageCookies.set('teststorageOne', 'One'); + ClientStorageCookies.set('teststorageTwo', 'Two'); var removeRes = ClientStorageCookies.empty(); test.isTrue(removeRes); @@ -248,8 +248,8 @@ Tinytest.add('ClientStorage - Cookies - empty() - ALL', function (test) { Tinytest.add('ClientStorage - Cookies - keys() / has() / remove() - String', function (test) { ClientStorageCookies.empty(); - var setResOne = ClientStorageCookies.set('teststorageOne', 'One'); - var setResTwo = ClientStorageCookies.set('teststorageTwo', 'Two'); + ClientStorageCookies.set('teststorageOne', 'One'); + ClientStorageCookies.set('teststorageTwo', 'Two'); test.isTrue(!!~ClientStorageCookies.keys().indexOf('teststorageOne')); test.isTrue(!!~ClientStorageCookies.keys().indexOf('teststorageTwo')); @@ -270,7 +270,7 @@ Tinytest.add('ClientStorage - Cookies - keys() / has() / remove() - String', fun ////////////// var ClientStorageLS = new clientStorage('localStorage'); -Tinytest.add('ClientStorage - LocalStorage - set() / get() / has() - Void (localStorage can\'t store undefined)', function (test) { +Tinytest.add('ClientStorage - LocalStorage - set() / get() / has() - Void (Error is expected as localStorage can\'t store undefined)', function (test) { ClientStorageLS.empty(); var testVal = void 0; var setRes = ClientStorageLS.set('Void', testVal); @@ -370,8 +370,8 @@ Tinytest.add('ClientStorage - LocalStorage - remove() - non existent value', fun Tinytest.add('ClientStorage - LocalStorage - empty() - ALL', function (test) { ClientStorageLS.empty(); - var setResOne = ClientStorageLS.set('teststorageOne', 'One'); - var setResTwo = ClientStorageLS.set('teststorageTwo', 'Two'); + ClientStorageLS.set('teststorageOne', 'One'); + ClientStorageLS.set('teststorageTwo', 'Two'); var removeRes = ClientStorageLS.empty(); test.isTrue(removeRes); @@ -383,8 +383,8 @@ Tinytest.add('ClientStorage - LocalStorage - empty() - ALL', function (test) { Tinytest.add('ClientStorage - LocalStorage - keys() / has() / remove() - String', function (test) { ClientStorageLS.empty(); - var setResOne = ClientStorageLS.set('teststorageOne', 'One'); - var setResTwo = ClientStorageLS.set('teststorageTwo', 'Two'); + ClientStorageLS.set('teststorageOne', 'One'); + ClientStorageLS.set('teststorageTwo', 'Two'); test.isTrue(!!~ClientStorageLS.keys().indexOf('teststorageOne')); test.isTrue(!!~ClientStorageLS.keys().indexOf('teststorageTwo')); @@ -483,8 +483,8 @@ Tinytest.add('ClientStorage - JS - remove() - non existent value', function (tes Tinytest.add('ClientStorage - JS - empty() - ALL', function (test) { ClientStorageJS.empty(); - var setResOne = ClientStorageJS.set('teststorageOne', 'One'); - var setResTwo = ClientStorageJS.set('teststorageTwo', 'Two'); + ClientStorageJS.set('teststorageOne', 'One'); + ClientStorageJS.set('teststorageTwo', 'Two'); var removeRes = ClientStorageJS.empty(); test.isTrue(removeRes); @@ -496,8 +496,8 @@ Tinytest.add('ClientStorage - JS - empty() - ALL', function (test) { Tinytest.add('ClientStorage - JS - keys() / has() / remove() - String', function (test) { ClientStorageJS.empty(); - var setResOne = ClientStorageJS.set('teststorageOne', 'One'); - var setResTwo = ClientStorageJS.set('teststorageTwo', 'Two'); + ClientStorageJS.set('teststorageOne', 'One'); + ClientStorageJS.set('teststorageTwo', 'Two'); test.isTrue(!!~ClientStorageJS.keys().indexOf('teststorageOne')); test.isTrue(!!~ClientStorageJS.keys().indexOf('teststorageTwo')); diff --git a/package.js b/package.js index 478250d..96846a7 100755 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'ostrio:cstorage', - version: '2.2.0', + version: '2.2.1', summary: 'Bulletproof persistent Client (Browser) storage, works with disabled Cookies and/or localStorage', git: 'https://github.com/VeliovGroup/Client-Storage', documentation: 'README.md'