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

@abp/aspnetcore.mvc.ui

Package Overview
Dependencies
Maintainers
2
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abp/aspnetcore.mvc.ui - npm Package Compare versions

Comparing version 3.3.1 to 4.0.0-rc.1

57

gulp/copy-resources.js

@@ -7,3 +7,5 @@ "use strict";

merge = require("merge-stream"),
rimraf = require("rimraf"),
fse = require('fs-extra'),
glob = require('glob'),
micromatch = require('micromatch'),
path = require("path"),

@@ -45,10 +47,39 @@ extendObject = require('extend-object');

}
function cleanFiles() {
if (resourceMapping.clean) {
for (var i = 0; i < resourceMapping.clean.length; i++) {
rimraf.sync(replaceAliases(resourceMapping.clean[i]) + '/**/*', { force: true });
}
}
function cleanDirsAndFiles(patterns) {
const { dirs, files } = findDirsAndFiles(patterns);
files.forEach(file => fse.unlinkSync(file));
dirs.forEach(dir => {
try {
fse.rmdirSync(dir);
} catch (_) {}
});
}
function findDirsAndFiles(patterns) {
const dirs = [];
const files = [];
const list = glob.sync('**/*', { dot: true });
const matches = micromatch(list, normalizeGlob(patterns), {
dot: true,
});
matches.forEach(match => {
if (!fse.pathExistsSync(match)) return;
(fse.statSync(match).isDirectory() ? dirs : files).push(match);
});
return { dirs, files };
}
function normalizeGlob(patterns) {
return patterns.map(pattern => {
const prefix = /\*$/.test(pattern) ? '' : '/**';
return replaceAliases(pattern).replace(/(!?)\.\//, '$1') + prefix;
});
}

@@ -69,10 +100,4 @@ function normalizeResourceMapping(resourcemapping) {

if (!resourcemapping.clean) {
resourcemapping.clean = [];
}
resourcemapping.clean = resourcemapping.clean || defaultSettings.clean;
for (var i = 0; i < defaultSettings.clean.length; ++i) {
resourcemapping.clean.push(defaultSettings.clean[i]);
}
return resourcemapping;

@@ -118,3 +143,3 @@ }

cleanFiles();
cleanDirsAndFiles(resourceMapping.clean);

@@ -121,0 +146,0 @@ var tasks = [];

{
"version": "3.3.1",
"version": "4.0.0-rc.1",
"name": "@abp/aspnetcore.mvc.ui",

@@ -10,8 +10,10 @@ "publishConfig": {

"extend-object": "^1.0.0",
"fs-extra": "^9.0.1",
"glob": "^7.1.6",
"gulp": "^4.0.2",
"merge-stream": "^2.0.0",
"path": "^0.12.7",
"rimraf": "^3.0.2"
"micromatch": "^4.0.2",
"path": "^0.12.7"
},
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431"
}
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