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

oss-site-deployer

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oss-site-deployer - npm Package Compare versions

Comparing version 1.0.1 to 1.0.3

bin/oss-site-deploy

6

index.js

@@ -52,3 +52,3 @@ const { promisify } = require('util');

this.fileList = [];
this.pending = Object.create(null);
this.pending.clear();
this.emit('uploadedAll', ret);

@@ -58,5 +58,5 @@ return { time: Date.now() - startedAt, fileCount: fileList.length };

async deploySite(uploadDir, prefix = '') {
async deploySite(uploadDir, prefix = '', { ignore } = {}) {
this.uploadDir = uploadDir || this.uploadDir;
const fileList = await globAsync('**/*', { cwd: uploadDir, nodir: true });
const fileList = await globAsync('**/*', { cwd: uploadDir, nodir: true, ignore });
const sortedFileList = fileList.sort((fileName) => (!fileName.endsWith('.html') ? -1 : 1));

@@ -63,0 +63,0 @@ return this.uploadFileListByOss(sortedFileList, prefix);

{
"name": "oss-site-deployer",
"version": "1.0.1",
"version": "1.0.3",
"description": "",
"main": "index.js",
"scripts": {
"release": "standard-version",
"test": "echo \"Error: no test specified\" && exit 1"
},
"bin": {
"oss-deploy": "bin/oss-deploy"
"oss-site-deploy": "bin/oss-site-deploy"
},

@@ -16,4 +17,14 @@ "author": "sqlwwx <wwx_2012@live.com> (http://wiki.lab.wuweixing.com)",

"ali-oss": "^6.0.1",
"commander": "^2.19.0",
"glob": "^7.1.3"
},
"devDependencies": {
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"husky": "^1.2.1",
"standard-version": "^4.4.0"
},
"husky": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
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