loop54-js-connector
Advanced tools
Comparing version 1.3.110 to 1.3.111
@@ -65,6 +65,9 @@ 'use strict'; | ||
versions: { | ||
libVersion: "1.3.110", //"110" will be replaced by teamcity. also in package.json | ||
libVersion: "1.4.111", //"111" will be replaced by teamcity. also in package.json | ||
apiVersion: "V3" | ||
}, | ||
userIdCookieKey: "Loop54User", | ||
userIdCookiePath: "/", | ||
setUserId: function () { | ||
@@ -76,3 +79,3 @@ var text = ""; | ||
} | ||
cookies.setItem("Loop54User", text, 365 * 24 * 60 * 60, "/"); //365 days | ||
cookies.setItem(core.userIdCookieKey, text, 365 * 24 * 60 * 60, core.userIdCookiePath); //365 days | ||
return text; | ||
@@ -82,3 +85,3 @@ }, | ||
getUserId: function () { | ||
var existing = cookies.getItem("Loop54User"); | ||
var existing = cookies.getItem(core.userIdCookieKey); | ||
if (existing) { | ||
@@ -90,2 +93,6 @@ return existing; | ||
removeUserId: function () { | ||
return cookies.removeItem(core.userIdCookieKey, core.userIdCookiePath); | ||
}, | ||
call: function (endpoint, path, body, method, callback, userId, apiKey) { | ||
@@ -533,2 +540,11 @@ | ||
return req; | ||
}, | ||
/** | ||
* Used for removing current userId cookie and setting a new one. | ||
*/ | ||
generateNewUserId: function () { | ||
core.removeUserId(); | ||
return core.setUserId(); | ||
} | ||
@@ -535,0 +551,0 @@ } |
{ | ||
"name": "loop54-js-connector", | ||
"version": "1.3.110", | ||
"version": "1.3.111", | ||
"description": "JS Wrapper for Loop54 JSON API", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
579826
8727
8