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

sajari-website

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sajari-website - npm Package Compare versions

Comparing version 0.7.5 to 0.7.6

2

package.json
{
"name": "sajari-website",
"version": "0.7.5",
"version": "0.7.6",
"description": "Website extensions for the Sajari API. Automatically index site content, add user profiles, render search and recommendations, etc.",

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

@@ -17,2 +17,3 @@ require("./utils/polyfills");

company: undefined,
project: undefined,
collection: undefined,

@@ -29,3 +30,3 @@ cssIncluded: false, // If false, the Sajari CSS will be loaded. This can be overridden by setting to true

targets: [
'company', 'collection', 'profile-id', 'noindex', 'noprofile', 'profile-delay', 'conv-type',
'project', 'company', 'collection', 'profile-id', 'noindex', 'noprofile', 'profile-delay', 'conv-type',
'search-query', 'search-query-word', 'search-query-go', 'search-results', 'recent', 'popular',

@@ -146,3 +147,3 @@ 'related', 'best', 'search-recent', 'search-noresults', 'search-error', 'personalization', 'overlay',

function apiInitialize(options) {
if (options.company === undefined || options.collection === undefined) {
if ((options.company === undefined && options.project === undefined) || options.collection === undefined) {
log("company and collection cannot be undefined...");

@@ -154,3 +155,3 @@ return false;

// This replaces the stack shoving queue that was here previously
api = new API(opts.company, opts.collection, {
api = new API(opts.company || opts.project, opts.collection, {
jsonp: true

@@ -564,3 +565,3 @@ });

data = {
'cc.co': opts.company,
'cc.co': opts.company || opts.project,
'cc.pr': opts.collection,

@@ -622,2 +623,6 @@ 'p.ga': profile.gaId,

project: function(newProject) {
opts.project = newProject + '';
},
// Don't scan the page when the script loads

@@ -624,0 +629,0 @@ // Use if performance is a problem or you want to call SJ.Scan() later

Sorry, the diff of this file is too big to display

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