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

assets

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

CHANGELOG.md
# Change log
## 3.0.1
- Improve Yarn compatibility (https://github.com/borodean/assets/pull/8)
- Updates the `engines` field of `package.json` to match the actually supported Node versions
## 3.0.0

@@ -4,0 +9,0 @@

2

lib/data.js

@@ -32,3 +32,3 @@ var encodeBuffer = require('./__utils__/encodeBuffer');

.then(function (resolvedPath) {
var mediaType = mime.lookup(resolvedPath);
var mediaType = mime.getType(resolvedPath);
return preadFile(resolvedPath)

@@ -35,0 +35,0 @@ .then(function (buffer) {

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

var calipers = require('calipers')('webp', 'png', 'jpeg', 'gif', 'svg');
var calipers = require('calipers')(
require('calipers-webp'),
require('calipers-png'),
require('calipers-jpeg'),
require('calipers-gif'),
require('calipers-svg')
);
var Promise = require('bluebird');

@@ -3,0 +9,0 @@ var resolvePath = require('./path');

@@ -39,7 +39,9 @@ var composeAbsolutePathname = require('./__utils__/composeAbsolutePathname');

if (options.relativeTo) {
toUrl.pathname =
composeRelativePathname(options.basePath, options.relativeTo, resolvedPath);
toUrl.pathname = composeRelativePathname(
options.basePath,
options.relativeTo,
resolvedPath
);
} else {
toUrl.pathname =
composeAbsolutePathname(options.baseUrl, options.basePath, resolvedPath);
toUrl.pathname = composeAbsolutePathname(options.baseUrl, options.basePath, resolvedPath);
}

@@ -46,0 +48,0 @@ if (options.cachebuster) {

{
"name": "assets",
"version": "3.0.0",
"version": "3.0.1",
"description": "An asset manager for node",

@@ -33,16 +33,16 @@ "keywords": [

"lodash": "^4.15.0",
"mime": "^1.4.0"
"mime": "^2.4.0"
},
"devDependencies": {
"ava": "^0.22.0",
"coveralls": "^2.11.13",
"eslint": "^4.5.0",
"eslint-config-airbnb-base": "^11.3.2",
"ava": "^0.25.0",
"coveralls": "^3.0.2",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.7.0",
"nyc": "^11.1.0",
"sinon": "^3.2.1"
"nyc": "^11.9.0",
"sinon": "^7.2.2"
},
"engines": {
"node": ">=0.12"
"node": ">=4"
}
}
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