cloudscript-server
Advanced tools
+7
-5
@@ -5,8 +5,10 @@ const fs = require('fs'); | ||
| const ignore = require('ignore'); | ||
| function getFiles(location) { | ||
| function getFiles(location, useIgnore) { | ||
| let files = fs.readdirSync(location).filter(file => file.indexOf('.') != 0 && file.includes('.js') && !file.includes('.json')); | ||
| try { | ||
| const ignoreFileContent = fs.readFileSync(path.join(location, '.cloudscriptignore'), 'utf8'); | ||
| const ig = ignore().add(ignoreFileContent); | ||
| files = ig.filter(files); | ||
| if (useIgnore) { | ||
| const ignoreFileContent = fs.readFileSync(path.join(location, '.cloudscriptignore'), 'utf8'); | ||
| const ig = ignore().add(ignoreFileContent); | ||
| files = ig.filter(files); | ||
| } | ||
| } | ||
@@ -36,3 +38,3 @@ catch (e) { | ||
| module.exports.compileRelease = (location) => { | ||
| let files = getFiles(location); | ||
| let files = getFiles(location, true); | ||
| let outFile = ""; | ||
@@ -39,0 +41,0 @@ for (let file of files) { |
+1
-1
| { | ||
| "name": "cloudscript-server", | ||
| "version": "1.1.4", | ||
| "version": "1.1.5", | ||
| "description": "A local environment for cloudscript development", | ||
@@ -5,0 +5,0 @@ "main": "monitor.js", |
+1
-0
@@ -32,2 +32,3 @@ # Playfab CloudScript Server | ||
| >cloudscript-server publish | ||
| Use a **.cloudscriptignore** file for ignoring files during the publishing process, this file is only used during the publish process, uses the same format as a .gitignore file | ||
@@ -34,0 +35,0 @@ ## Disclaimer |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
59634
0.41%1174
0.17%40
2.56%