New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sajari

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sajari - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

2

package.json
{
"name": "sajari",
"version": "0.7.1",
"version": "0.7.2",
"description": "JavaScript SDK for access to the Sajari search API",

@@ -5,0 +5,0 @@ "author": {

@@ -83,7 +83,11 @@ var isArray = require('./utils/isArray');

for (i = 0; i < this.options[k].length; i++) {
var val = "";
if (isArray(this.options[k][i].value)) {
args[k + '[' + this.options[k][i].key + ']'] = this.options[k][i].value.join(';');
val = this.options[k][i].value.join(';');
} else if (typeof this.options[k][i].value === 'object') {
val = JSON.stringify(this.options[k][i].value);
} else {
args[k + '[' + this.options[k][i].key + ']'] = this.options[k][i].value;
val = this.options[k][i].value
}
args[k + '[' + this.options[k][i].key + ']'] = val;
}

@@ -90,0 +94,0 @@ }

@@ -14,2 +14,4 @@

.meta("name", "fred")
.meta("object", {"key":"val"})
.meta("array", ['a', 'b', 'c'])
.append("tags", "hoops")

@@ -32,2 +34,4 @@ .delta("count", 1)

t.equal(enc["meta[name]"], "fred");
t.equal(enc["meta[object]"], '{"key":"val"}');
t.equal(enc["meta[array]"], 'a;b;c');
t.equal(enc["set[category]"], "changed!");

@@ -34,0 +38,0 @@ t.equal(enc["delta[count]"], 1);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc