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

@cara/porter

Package Overview
Dependencies
Maintainers
3
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cara/porter - npm Package Compare versions

Comparing version 4.2.11 to 4.2.12

5

package.json
{
"name": "@cara/porter",
"description": "A middleware for web modules",
"version": "4.2.11",
"version": "4.2.12",
"main": "src/porter.js",

@@ -45,3 +45,4 @@ "repository": {

},
"license": "BSD-3-Clause"
"license": "BSD-3-Clause",
"gitHead": "9500b6657a83a63cf200c44f46c2025a6264e3ee"
}

12

src/sass_module.js

@@ -5,2 +5,3 @@ 'use strict';

const sass = require('sass');
const { pathToFileURL } = require('url');
const CssModule = require('./css_module');

@@ -15,7 +16,14 @@

async transpile({ code, map, minify }) {
const { packet } = this;
const { fpath, packet } = this;
const loadPaths = packet.paths || [ packet.dir ];
const result = sass.compileString(code, {
const result = await sass.compileStringAsync(code, {
loadPaths,
url: pathToFileURL(fpath),
importers: [{
findFileUrl: async (url) => {
const mod = await this.parseImport(url);
return mod ? pathToFileURL(mod.fpath) : null;
},
}],
});

@@ -22,0 +30,0 @@

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