Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-syntax

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-syntax - npm Package Compare versions

Comparing version 0.34.0 to 0.36.0

2

get-lang.js

@@ -52,3 +52,3 @@ "use strict";

// start with require code
/^(?:(?:\/\/[^\r\n]*\r?\n|\/\*.*?\*\/)\s*)*(?:(?:("|')use strict\1|import(?:\s+[^;]+\s+from)?\s+("|')[^'"]+?\2)\s*(;|\r?\n|$)|(?:(?:var|let|const)\s+[^;]+\s*=\s*)?(?:require|import)\(.+\))/.test(source) ||
/^(?:(?:\/\/[^\r\n]*\r?\n|\/\*.*?\*\/)\s*)*(?:(?:("|')use strict\1|import(?:\s+[^;]+\s+from)?\s+("|')[^'"]+?\2|export\s+[^;]+\s+[^;]+)\s*(;|\r?\n|$)|(?:(?:var|let|const)\s+[^;]+\s*=\s*)?(?:require|import)\(.+\))/.test(source) ||
// https://en.wikipedia.org/wiki/Shebang_(Unix)

@@ -55,0 +55,0 @@ (/^#!([^\r\n]+)/.test(source) && /(?:^|\s+|\/)(?:ts-)?node(?:\.\w+)?(?:\s+|$)$/.test(RegExp.$1))

@@ -26,3 +26,3 @@ "use strict";

syntax = "sugarss";
} else if (path.isAbsolute(syntax) || syntax.startsWith(".")) {
} else if (path.isAbsolute(syntax) || syntax[0] === ".") {
syntax = path.resolve(syntax);

@@ -29,0 +29,0 @@ } else {

@@ -12,8 +12,2 @@ "use strict";

try {
require.resolve("postcss-jsx");
} catch (ex) {
defaultConfig.jsx = "styled";
}
function initSyntax (syntax) {

@@ -20,0 +14,0 @@ syntax.stringify = stringify.bind(syntax);

@@ -12,4 +12,8 @@ "use strict";

parse: require(modulePath),
stringify: cssSyntax.stringify,
};
try {
syntax.stringify = require(id + "/template-stringify");
} catch (ex) {
syntax.stringify = cssSyntax.stringify;
}
cache[modulePath] = syntax;

@@ -16,0 +20,0 @@ }

{
"name": "postcss-syntax",
"version": "0.34.0",
"version": "0.36.0",
"description": "Automatically switch PostCSS syntax by file extensions",

@@ -88,11 +88,11 @@ "repository": {

"devDependencies": {
"chai": "^4.1.2",
"chai": "^4.2.0",
"codecov": "^3.1.0",
"mocha": "^5.2.0",
"nyc": "^13.0.1",
"postcss": "^7.0.2",
"postcss-html": ">=0.34.0",
"postcss-jsx": ">=0.34.0",
"postcss-less": "^2.0.0",
"postcss-markdown": ">=0.34.0",
"nyc": "^13.1.0",
"postcss": "^7.0.7",
"postcss-html": ">=0.36.0",
"postcss-jsx": ">=0.36.0",
"postcss-less": "^3.1.0",
"postcss-markdown": ">=0.36.0",
"postcss-safe-parser": "^4.0.1",

@@ -99,0 +99,0 @@ "postcss-scss": "^2.0.0",

@@ -59,11 +59,10 @@ "use strict";

map: false,
}));
}, style.opts));
} catch (error) {
if (style.ignoreErrors) {
return;
} else if (style.skipConvert) {
throw error;
} else {
throw this.error(error);
} else if (!style.skipConvert) {
this.error(error);
}
throw error;
}

@@ -70,0 +69,0 @@ if (!style.skipConvert) {

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