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

amd-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amd-wrapper - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

7

index.js

@@ -153,6 +153,7 @@ /**

function transformToAMD(code, options) {
if (!/^\s*define\s*\(\s*/.test(code)) {
// remove comment
var tmp = code.replace(/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg, '');
if (!/^\s*define\s*\(\s*/.test(tmp)) {
if (options && options.checkUMD) {
// remove comment
var tmp = code.replace(/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg, '');
// check whether has umd definition

@@ -159,0 +160,0 @@ if (/\Wdefine\s*\(/.test(tmp)

{
"name": "amd-wrapper",
"version": "0.1.2",
"version": "0.1.3",
"description": "The AMD wrapper for CommonJS files",

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

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