Socket
Socket
Sign inDemoInstall

svelte-preprocess

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-preprocess - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

7

CHANGELOG.md

@@ -7,7 +7,8 @@ ### Changelog

#### [v2.4.3](https://github.com/kaisermann/svelte-preprocess/compare/v2.4.2...v2.4.3)
#### [v2.5.0](https://github.com/kaisermann/svelte-preprocess/compare/v2.4.2...v2.5.0)
> 7 November 2018
> 12 February 2019
- Fix not being able to disable sourceMap for scss [`4ea6414`](https://github.com/kaisermann/svelte-preprocess/commit/4ea6414f1bcbe9e7e66b5b25163a4075b0c0fb9f)
- add dependencies to result [`f3d1ef1`](https://github.com/kaisermann/svelte-preprocess/commit/f3d1ef13234707383fb42c38094caeae2de632ff)
- test: 💍 add test for external dependencies [`5935cfc`](https://github.com/kaisermann/svelte-preprocess/commit/5935cfca694cbd78b06ef82eb5e1543c0ec85ac0)

@@ -14,0 +15,0 @@ #### [v2.4.2](https://github.com/kaisermann/svelte-preprocess/compare/v2.4.1...v2.4.2)

{
"name": "svelte-preprocess",
"version": "2.5.0",
"version": "2.5.1",
"license": "MIT",

@@ -29,21 +29,21 @@ "main": "src/index.js",

"devDependencies": {
"auto-changelog": "^1.8.1",
"autoprefixer": "^9.3.1",
"auto-changelog": "^1.11.0",
"autoprefixer": "^9.4.7",
"coffeescript": "^2.3.2",
"eslint": "^5.7.0",
"eslint-config-prettier": "^3.1.0",
"eslint": "^5.13.0",
"eslint-config-prettier": "^4.0.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"jest": "^23.6.0",
"less": "^3.8.1",
"node-sass": "^4.9.4",
"postcss": "^7.0.5",
"prettier": "^1.14.3",
"jest": "^24.1.0",
"less": "^3.9.0",
"node-sass": "^4.11.0",
"postcss": "^7.0.14",
"prettier": "^1.16.4",
"pug": "^2.0.3",
"stylus": "^0.54.5",
"svelte": "^2.14.3"
"svelte": "^2.16.1"
},

@@ -50,0 +50,0 @@ "peerDependencies": {

@@ -71,11 +71,11 @@ const { readFile } = require('fs')

exports.getLanguage = (attributes, defaultLang) => {
let lang
let lang = defaultLang
if (attributes.src) {
if (attributes.lang) {
lang = attributes.lang
} else if (attributes.type) {
lang = attributes.type.replace(/^(text|application)\/(.*)$/, '$2')
} else if (attributes.src) {
lang = attributes.src.match(/\.([^/.]+)$/)
lang = lang ? lang[1] : defaultLang
} else {
lang = attributes.type
? attributes.type.replace(/^(text|application)\/(.*)$/, '$2')
: attributes.lang || defaultLang
}

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