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

grunt-cacheinfo

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-cacheinfo - npm Package Compare versions

Comparing version 0.4.8 to 0.4.9

2

package.json
{
"name": "grunt-cacheinfo",
"description": "cacheinfo.",
"version": "0.4.8",
"version": "0.4.9",
"author": {

@@ -6,0 +6,0 @@ "name": "bachi",

@@ -23,2 +23,4 @@ # grunt-cacheinfo

- 0.4.9
- 支持 `awpPathMap` 映射
- 0.4.8

@@ -25,0 +27,0 @@ - 支持 `market.m.taobao.com` 域名构建

@@ -237,2 +237,3 @@ /*

var packageName = pkg.isAir ? pkg.name : pkg.name.replace(/^h5-/, '');
var awpPathMap = abc.awpPathMap || {};

@@ -245,2 +246,6 @@ all_files.forEach(function (file, k) {

var key = generateFullUrl(pkg, file);
var keyPath = key.replace(/^\/trip\//, '');
if (awpPathMap[keyPath]) {
key = '/trip/' + awpPathMap[keyPath];
}
cache_files[key] = file;

@@ -310,9 +315,14 @@ if (packageName == 'flight-checkin') {

var pathPrefix = '/' + abc.group + '/' + projectName + '/';
var key = pathPrefix + file;
var keyPath = key.replace(/^\/trip\//, '').replace(/\/pages\//, '/');
if (awpPathMap[keyPath]) {
key = '/trip/' + awpPathMap[keyPath];
}
[
'/js' + pathPrefix + file.replace(/\.js$/, '-min.js'),
'/js' + pathPrefix + file,
'/js' + key.replace(/\.js$/, '-min.js'),
'/js' + key,
// awp 升级支持不需要必须部署在 `/js/` 前缀下
pathPrefix + file.replace(/\.js$/, '-min.js'),
pathPrefix + file
key.replace(/\.js$/, '-min.js'),
key
].forEach(function (reqPath) {

@@ -319,0 +329,0 @@ abcJSON.cache[reqPath] = file;

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