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

avet-assets

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avet-assets - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

16

config/config.default.js
exports.assets = {
extensions: ['txt', 'svg', 'png', 'jpg', 'jpeg', 'webp', 'gif'],
extensions: [ 'txt', 'svg', 'png', 'jpg', 'jpeg', 'webp', 'gif' ],
regExp: '.*/static/(.+)',

@@ -9,2 +9,14 @@ name: '/static/[1]?[sha512:hash:base64:7]',

babel: (babelConfig, config) => {
let { name } = config.assets;
if (config.build.assetPrefix) {
const uuid = require('uuid');
const buildId = uuid.v4();
config.build.buildId = buildId;
name =
config.build.assetPrefix.replace(/\/$/, '') +
name.replace('static', `static/${buildId}`);
}
babelConfig.plugins.push([

@@ -15,3 +27,3 @@ require.resolve('babel-plugin-transform-assets'),

regExp: config.assets.regExp,
name: config.assets.name,
name,
},

@@ -18,0 +30,0 @@ ]);

19

package.json
{
"name": "avet-assets",
"version": "1.0.0",
"version": "1.1.0",
"description": "avet assets",

@@ -8,10 +8,6 @@ "avetPlugin": {

},
"keywords": [
"avet",
"avetPlugin",
"avet-plugin",
"assets"
],
"keywords": ["avet", "avetPlugin", "avet-plugin", "assets"],
"dependencies": {
"babel-plugin-transform-assets": "0.2.0"
"babel-plugin-transform-assets": "0.2.0",
"uuid": "^3.1.0"
},

@@ -30,7 +26,4 @@ "devDependencies": {

},
"files": [
"config",
"app.js"
],
"files": ["config", "app.js"],
"license": "MIT"
}
}
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