icon-maker-loader
Advanced tools
Comparing version 0.1.2 to 0.1.3
20
index.js
@@ -18,7 +18,19 @@ const loaderUtils = require('loader-utils'); | ||
Promise.all(outFont.fontFiles.map(fontFile => new Promise((resolve, reject) => { | ||
fs.writeFile(path.join(tmpFolder, path.basename(fontFile.path)), fontFile.contents.toString(), writeErr => { | ||
if (writeErr) { | ||
reject(writeErr); | ||
fs.open(path.join(tmpFolder, path.basename(fontFile.path)), 'a', (openErr, fd) => { | ||
if (openErr) { | ||
reject(openErr); | ||
} else { | ||
resolve(); | ||
fs.write(fd, fontFile.contents, 0, fontFile.contents.length, writeErr => { | ||
if (writeErr) { | ||
reject(writeErr); | ||
} else { | ||
fs.close(fd, closeErr => { | ||
if (closeErr) { | ||
reject(closeErr); | ||
} else { | ||
resolve(); | ||
} | ||
}); | ||
} | ||
}); | ||
} | ||
@@ -25,0 +37,0 @@ }); |
{ | ||
"name": "icon-maker-loader", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 6 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 6 instances in 1 package
231
24617