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

babel-plugin-sfcc-modules

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-sfcc-modules - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

index.js

@@ -46,7 +46,7 @@ const fs = require('fs');

//
// require('^/cartridge/scripts/foo')
// require('~/cartridge/scripts/foo')
//
// Own cartridge - rewrites the module path to a relative URL.
//
if (imp.source.indexOf('^/') === 0) {
if (imp.source.indexOf('~/') === 0) {
resolve(() => path.relative(basePath, path.dirname(state.file.opts.filename)).split(path.sep)[0]);

@@ -53,0 +53,0 @@ }

{
"name": "babel-plugin-sfcc-modules",
"version": "1.0.1",
"version": "1.0.2",
"description": "Babel plugin to handle non-standard module paths used by Salesforce Commerce Cloud (SFCC)",

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

@@ -16,3 +16,3 @@ [![NPM version][npm-image]][npm-url] [![Downloads][npm-downloads-image]][npm-url] [![Dependencies][deps-image]][deps-url] [![star this repo][gh-stars-image]][gh-url] [![fork this repo][gh-forks-image]][gh-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] ![Code Style][codestyle-image]

```javascript
require('^/cartridge/scripts/bar')
require('~/cartridge/scripts/bar')
```

@@ -19,0 +19,0 @@

@@ -1,3 +0,3 @@

const pet = require('^/cartridge/scripts/pet');
const pet = require('~/cartridge/scripts/pet');
module.exports = pet;
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