loop54-js-connector
Advanced tools
Comparing version 1.5.113 to 1.6.117
@@ -65,3 +65,3 @@ 'use strict'; | ||
versions: { | ||
libVersion: "1.5.113", //"113" will be replaced by teamcity. also in package.json | ||
libVersion: "1.5.117", //"117" will be replaced by teamcity. also in package.json | ||
apiVersion: "V3" | ||
@@ -419,3 +419,3 @@ }, | ||
var args = core.getOptionsAndCallback(arguments, 1); | ||
var args = core.getOptionsAndCallback(arguments, 1, 4); | ||
if (args.error) { | ||
@@ -427,2 +427,12 @@ return core.returnError(args.error,args.callback); | ||
var callback = args.callback ? args.callback : null; | ||
// read and validate relKind | ||
var relKind; | ||
for (var i = 1; i < arguments.length; i++) { | ||
if (typeof(arguments[i]) === "string") | ||
relKind = arguments[i]; | ||
} | ||
if (!(relKind === undefined || relKind === "similar" || relKind === "complementary")) | ||
return core.returnError("relKind must be either undefined or \"similar\" or \"complementary\"."); | ||
@@ -437,3 +447,4 @@ //validate entity | ||
resultsOptions: core.deleteCustomData(options), | ||
customData:options.customData | ||
customData: options.customData, | ||
relationKind: relKind // because relKind is undefined, it'll be skipped during stringify, so older engines won't choke on it | ||
}, null, callback, userId, apiKey, customHeaders); | ||
@@ -440,0 +451,0 @@ |
{ | ||
"name": "loop54-js-connector", | ||
"version": "1.5.113", | ||
"version": "1.6.117", | ||
"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
582334
8760
8