@rentspree/cookie
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@rentspree/cookie", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Cookie library for Rentspree's projects", | ||
@@ -17,3 +17,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"lodash": "4.17.10", | ||
"lodash": "^4.17.11", | ||
"universal-cookie": "2.2.0" | ||
@@ -20,0 +20,0 @@ }, |
@@ -5,3 +5,3 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
npm install rentspree/cookie | ||
npm install @rentspree/cookie | ||
@@ -8,0 +8,0 @@ ## Update a newer version |
@@ -97,5 +97,7 @@ import Cookies from 'universal-cookie' | ||
it("should be able to remove all cookies that have \"woah\" at the start of their name", () => { | ||
const cookieName = "noWoahTestGet" | ||
const cookieValue = "test-get-cookie" | ||
CookieUtils.setLocalItem(cookieName, cookieValue) | ||
const cookieName = ["noWoahTestGet", "woahTestGet"] | ||
const cookieValue = ["test-get-cookie", "get-cookie-test"] | ||
for (let i = 0; i < 2; i += 1) { | ||
CookieUtils.setLocalItem(cookieName[i], cookieValue[i]) | ||
} | ||
@@ -106,5 +108,5 @@ CookieUtils.removeAllLocalItem("woah") | ||
Object.entries(allCookies).length.should.equal(1) | ||
allCookies.hasOwnProperty(cookieName).should.be.true | ||
allCookies.hasOwnProperty(cookieName[0]).should.be.true | ||
}) | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
22018
309
+ Addedlodash@4.17.21(transitive)
- Removedlodash@4.17.10(transitive)
Updatedlodash@^4.17.11