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

@asset-pipe/css-writer

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asset-pipe/css-writer - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

14

lib/util.js

@@ -11,2 +11,15 @@ 'use strict';

const removeTilde = postcss.plugin(
'postcss-import-remove-tilde',
() =>
function(css) {
css.walkAtRules('import', rule => {
rule.params = rule.params.replace(
/((?:url\s*\(\s*)?['"])~/,
'$1'
);
});
}
);
module.exports.identifyCssModule = async function identifyCssModule(filePath) {

@@ -25,2 +38,3 @@ const { pkg: { name, version }, path: packagePath } = await readPkgUp({

const { css } = await postcss()
.use(removeTilde())
.use(atImport())

@@ -27,0 +41,0 @@ .process(fileContents, { from: filePath });

12

lib/writer.js

@@ -52,17 +52,11 @@ 'use strict';

typeof file === 'string',
`Expected 'file' (${
file
}) to be of type 'string', instead got '${typeof file}'`
`Expected 'file' (${file}) to be of type 'string', instead got '${typeof file}'`
);
assert(
isAbsolute(file),
`Expected 'file' (${
file
}) to be an absolute path to a file but it was not`
`Expected 'file' (${file}) to be an absolute path to a file but it was not`
);
assert(
existsSync(file),
`Expected 'file' (${
file
}) to exist on file system but it did not`
`Expected 'file' (${file}) to exist on file system but it did not`
);

@@ -69,0 +63,0 @@ }

@@ -1,1 +0,97 @@

{"name":"@asset-pipe/css-writer","version":"2.0.0","author":"Richard Walker <digitalsadhu@gmail.com>","description":"CSS asset feed writer","main":"./lib/writer.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/asset-pipe/asset-pipe-css-writer"},"keywords":["css","assets"],"contributors":["Richard Walker <digitalsadhu@gmail.com>","Richard Walker (https://github.com/digitalsadhu)","Simen Bekkhus (https://github.com/SimenB)"],"bugs":{"url":"https://github.com/asset-pipe/asset-pipe-css-writer/issues"},"license":"MIT","dependencies":{"asset-pipe-common":"^1.0.0-beta.6","postcss":"^6.0.13","postcss-import":"^11.0.0","read-pkg-up":"^3.0.0"},"devDependencies":{"commitizen":"^2.9.6","cz-conventional-changelog":"^2.0.0","eslint":"^4.9.0","eslint-config-finn":"^3.0.0","eslint-config-finn-prettier":"^3.0.1","husky":"^0.14.3","jest":"^21.2.1","lint-staged":"^5.0.0","prettier":"^1.8.2","projectz":"^1.4.0","semantic-release":"^8.2.0"},"scripts":{"format":"prettier --write --single-quote --trailing-comma=all --tab-width=4 lib/**/*.js test/**/*.js README.md","lint":"eslint .","test":"jest --coverage","lint:format":"eslint --fix .","precommit":"lint-staged","cm":"git-cz","readme":"projectz compile","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"files":["lib"],"jest":{"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}},"clearMocks":true},"lint-staged":{"*.js":["eslint --fix --config ./.eslintrc","git add"],"{package.json,README.md,LICENSE.md}":["projectz compile","git add"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"badges":{"list":["travisci","npmversion","daviddm","daviddmdev"]},"maintainers":[]}
{
"name": "@asset-pipe/css-writer",
"version": "2.0.1",
"author": "Richard Walker <digitalsadhu@gmail.com>",
"description": "CSS asset feed writer",
"main": "./lib/writer.js",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/asset-pipe/asset-pipe-css-writer"
},
"keywords": [
"css",
"assets"
],
"contributors": [
"Richard Walker <digitalsadhu@gmail.com>",
"Richard Walker (https://github.com/digitalsadhu)",
"Simen Bekkhus (https://github.com/SimenB)"
],
"bugs": {
"url": "https://github.com/asset-pipe/asset-pipe-css-writer/issues"
},
"license": "MIT",
"dependencies": {
"asset-pipe-common": "^1.0.0-beta.6",
"postcss": "^6.0.13",
"postcss-import": "^11.0.0",
"read-pkg-up": "^3.0.0"
},
"devDependencies": {
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.0.0",
"eslint": "^4.9.0",
"eslint-config-finn": "^3.0.0",
"eslint-config-finn-prettier": "^3.0.1",
"eslint-plugin-import": "^2.8.0",
"husky": "^0.14.3",
"jest": "^22.0.4",
"lint-staged": "^7.0.0",
"prettier": "^1.9.2",
"projectz": "^1.4.0",
"semantic-release": "^15.1.4",
"travis-deploy-once": "^4.3.1"
},
"scripts": {
"format": "prettier --write --single-quote --trailing-comma=all --tab-width=4 lib/**/*.js test/**/*.js README.md",
"lint": "eslint .",
"test": "jest --coverage",
"lint:format": "eslint --fix .",
"precommit": "lint-staged",
"cm": "git-cz",
"readme": "projectz compile",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"files": [
"lib"
],
"jest": {
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"clearMocks": true
},
"lint-staged": {
"*.js": [
"eslint --fix --config ./.eslintrc",
"git add"
],
"{package.json,README.md,LICENSE.md}": [
"projectz compile",
"git add"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"badges": {
"list": [
"travisci",
"npmversion",
"daviddm",
"daviddmdev"
]
},
"maintainers": []
}
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