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

babel-plugin-transform-css-import-to-string

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-css-import-to-string - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

8

lib/index.js

@@ -16,3 +16,3 @@ 'use strict';

if (node.source.value.endsWith('.css')) {
if (endsWith(node.source.value, '.css')) {
var dir = _path2.default.dirname(_path2.default.resolve(state.file.opts.filename));

@@ -47,2 +47,6 @@ var absolutePath = _path2.default.resolve(dir, node.source.value);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function endsWith(str, search) {
return str.indexOf(search, str.length - search.length) !== -1;
}
{
"name": "babel-plugin-transform-css-import-to-string",
"version": "0.0.1",
"version": "0.0.2",
"description": "Turn CSS imports into strings",
"main": "lib/index.js",
"scripts": {
"build": "babel src --out-dir lib --copy-files",
"build": "rm -rf lib/ && babel src --out-dir lib --copy-files",
"prepublish": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -9,0 +10,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