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.3 to 1.0.4

27

files/app/js/index.js

@@ -18,6 +18,6 @@ import CD from "cropduster";

Promise.resolve();
return Promise.resolve();
} catch (error) {
Promise.reject(error);
return Promise.reject(error);
}

@@ -46,3 +46,3 @@ }

default:
Promise.reject("No item type selected");
return Promise.reject(new Error("No item type selected"));
}

@@ -74,14 +74,14 @@ }

data = data.replace(/<script src=/g, '<noscript class="mi-script-src" data-script-url=')
.replace(/<script/g, '<noscript class="mi-script-inline"')
.replace(/<\/script/g, "</noscript")
.replace(/onload=/g, "data-onload=")
.replace(/src=/g, "data-src=")
.replace(/srcset=/g, "data-srcset=");
.replace(/<script/g, '<noscript class="mi-script-inline"')
.replace(/<\/script/g, "</noscript")
.replace(/onload=/g, "data-onload=")
.replace(/src=/g, "data-src=")
.replace(/srcset=/g, "data-srcset=");
const $doc = $(data);
// Rendering code goes here
const tagValues = {
imageUrl: $doc.find('').eq(0).attr('data-src'),
title: $doc.find('').text().trim(),
price: $doc.find('').text().trim()
const tagContent = {
mi_item_image: $doc.find('').eq(0).attr('data-src'),
mi_item_title: $doc.find('').text().trim(),
mi_item_price: $doc.find('').text().trim()
};

@@ -92,7 +92,6 @@

this.replaceTokens(this.tags, { tagValues });
this.replaceTokens(this.tags, { tagContent });
this.autoresizeTags();
this.waitForImageAssets();
window.APP_SUCCESSFULLY_RENDERED = true;
Promise.resolve();
})

@@ -99,0 +98,0 @@ .catch(error => this.error(error));

{
"name": "@movable/behavioral-app",
"version": "1.0.3",
"version": "1.0.4",
"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