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

@movable/behavioral-app

Package Overview
Dependencies
Maintainers
8
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@movable/behavioral-app - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

26

files/app/js/index.js
import CD from "cropduster";
import jQuery from "jquery";
import $ from "jquery";
import StudioApp from "studio-app";

@@ -13,2 +13,5 @@ import watson from "./watson";

try {
this.options.itemType = parseInt(this.options.itemType, 10);
this.options.itemIdx = parseInt(this.options.itemIdx, 10);
// Site-wide items do not require a user ID

@@ -19,2 +22,5 @@ if (this.options.itemType < 2) {

// console.log("Tags", this.tags);
// console.log("Options", this.options);
return Promise.resolve();

@@ -28,3 +34,3 @@

getItemsByType() {
let sherlockOptions = {
let watsonOptions = {
// Additional options are documented in the watson.js file

@@ -36,12 +42,12 @@ userId: this.userId,

switch (options.itemType) {
switch (this.options.itemType) {
case 0:
return watson("getRecentlyViewed", sherlockOptions);
return watson("getRecentlyViewed", watsonOptions);
case 1:
return watson("getCart", sherlockOptions);
return watson("getCart", watsonOptions);
case 2:
sherlockOptions.companyMethod = true;
return watson("getMostViewed", sherlockOptions);
watsonOptions.companyMethod = true;
return watson("getMostViewed", watsonOptions);

@@ -84,4 +90,4 @@ default:

// Rendering code goes here
const imageUrl = $doc.find('').eq(0).attr('data-src');
const tagContent = {
mi_item_image: $doc.find('').eq(0).attr('data-src'),
mi_item_title: $doc.find('').text().trim(),

@@ -93,4 +99,6 @@ mi_item_price: $doc.find('').text().trim()

CD.setClickthrough(this.options.item.u);
this.replaceTokens(this.tags, tagContent);
this.replaceTokens(this.tags, { tagContent });
$('.itemImage img').attr('src', imageUrl);
this.autoresizeTags();

@@ -97,0 +105,0 @@ this.waitForImageAssets();

@@ -1,2 +0,2 @@

import Sherlock from "node_modules/sherlockapi/lib/sherlock";
import Sherlock from "sherlockapi";

@@ -3,0 +3,0 @@ /**

@@ -22,3 +22,3 @@ {

"studio-app": "^1.5.0",
"sherlockapi": "git+ssh://git@github.com/movableink/sherlockAPI.git#9.0.0"
"sherlockapi": "git+ssh://git@github.com/movableink/sherlockAPI.git#10.0.0"
},

@@ -25,0 +25,0 @@ "devDependencies": {

{
"name": "@movable/behavioral-app",
"version": "1.0.4",
"version": "1.0.5",
"description": "Movable CLI blueprint for initializing a new behavioral application.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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