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

@ampify/aquery

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampify/aquery - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

2

package.json
{
"name": "@ampify/aquery",
"version": "2.0.2",
"version": "2.0.3",
"main": "./dist/aquery.js",

@@ -5,0 +5,0 @@ "module": "./src",

@@ -762,10 +762,17 @@ import jQuery from 'jquery';

aQuery.keepElements = (elements) => {
elements.forEach(element => {
if (element instanceof jQuery) {
element.attr('ampify-keep', '');
} else {
element.setAttribute('ampify-keep', '');
}
});
if (elements instanceof Array) {
elements.forEach(element => {
keepElement(element);
});
} else {
keepElement(elements);
}
};
const keepElement = (element) => {
if (element instanceof jQuery) {
element.attr('ampify-keep', '');
} else if (element instanceof HTMLElement) {
element.setAttribute('ampify-keep', '');
}
}

@@ -772,0 +779,0 @@ aQuery.injectCss = injectCss;

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