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

postcss-smart-asset

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-smart-asset - npm Package Compare versions

Comparing version 0.6.2 to 0.7.0

4

lib/index.cjs.js

@@ -1,2 +0,2 @@

/*! postcss-smart-asset v0.6.2 by Sebastian Software <s.werner@sebastian-software.de> */
/*! postcss-smart-asset v0.7.0 by Sebastian Software <s.werner@sebastian-software.de> */
'use strict';

@@ -178,3 +178,3 @@

if (options.useHash && options.prependName) {
if (options.useHash && options.keepName) {
pathObj = path.parse(assetRelativePath);

@@ -181,0 +181,0 @@ fileName = path.parse(asset.relativePath).name;

@@ -1,2 +0,2 @@

/*! postcss-smart-asset v0.6.2 by Sebastian Software <s.werner@sebastian-software.de> */
/*! postcss-smart-asset v0.7.0 by Sebastian Software <s.werner@sebastian-software.de> */
import 'core-js/modules/es6.regexp.search';

@@ -173,3 +173,3 @@ import 'core-js/modules/es6.array.map';

if (options.useHash && options.prependName) {
if (options.useHash && options.keepName) {
pathObj = path.parse(assetRelativePath);

@@ -176,0 +176,0 @@ fileName = path.parse(asset.relativePath).name;

{
"name": "postcss-smart-asset",
"version": "0.6.2",
"version": "0.7.0",
"description": "PostCSS plugin to rebase or inline on url().",

@@ -35,3 +35,3 @@ "keywords": [

"dependencies": {
"asset-hash": "^2.1.4",
"asset-hash": "^2.1.5",
"cp-file": "^6.0.0",

@@ -38,0 +38,0 @@ "mime": "^2.3.1",

@@ -179,4 +179,4 @@ # PostCSS Smart Asset<br/>[![Sponsored by][sponsor-img]][sponsor] [![Version][npm-version-img]][npm] [![Downloads][npm-downloads-img]][npm] [![Build Status Unix][travis-img]][travis] [![Build Status Windows][appveyor-img]][appveyor] [![Dependencies][deps-img]][deps]

* `assetsPath` - directory to copy assets (relative to `to` or absolute)
* `useHash` - use filehash(xxhash) for naming
* `prependName` - use filename__hash as filename (assuming useHash is also true)
* `useHash` - use content hash of file for naming
* `keepName` - use `filename-hash` as filename (assuming useHash is also true)
* `hashOptions` - options for hash function

@@ -272,3 +272,3 @@ * `custom {Function}`

#### `prependName`
#### `keepName`

@@ -281,16 +281,8 @@ _(default: `false`)_

##### `method`
_(default: `{}`)_
_(default: `null`)_
Any options supported by the underlying [asset-hash](https://www.npmjs.com/package/asset-hash) library. Uses defaults of this library by default.
Uses default method of [asset-hash](https://www.npmjs.com/package/asset-hash) library.
##### `shrink`
_(default: `8`)_
Result hash shrink count
## License

@@ -297,0 +289,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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