@teambit/toolbox.fs.progress-bar-file-extractor
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -67,8 +67,8 @@ "use strict"; | ||
const rate = processedBytes / elapsed; | ||
const rateh = `${pretty_bytes_1.default(rate)}/s`; | ||
const rateh = `${(0, pretty_bytes_1.default)(rate)}/s`; | ||
const estimated = maxBytes / rate; | ||
// const progress = this.done / this.total | ||
const eta = estimated - elapsed; | ||
const etaDate = date_fns_1.addSeconds(new Date(), eta); | ||
const etah = date_fns_1.formatDistanceToNow(etaDate, { includeSeconds: true }); | ||
const etaDate = (0, date_fns_1.addSeconds)(new Date(), eta); | ||
const etah = (0, date_fns_1.formatDistanceToNow)(etaDate, { includeSeconds: true }); | ||
bar.update(processedBytes, { speed: rateh, etah: etah }); | ||
@@ -75,0 +75,0 @@ } |
{ | ||
"name": "@teambit/toolbox.fs.progress-bar-file-extractor", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"homepage": "https://bit.dev/teambit/toolbox/fs/progress-bar-file-extractor", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "fs/progress-bar-file-extractor", | ||
"version": "0.0.3" | ||
"version": "0.0.4" | ||
}, | ||
@@ -29,3 +29,3 @@ "dependencies": { | ||
"peerDependencies": {}, | ||
"license": "SEE LICENSE IN LICENSE", | ||
"license": "Apache-2.0", | ||
"bit": { | ||
@@ -32,0 +32,0 @@ "bindingPrefix": "@teambit", |
@@ -12,10 +12,10 @@ { | ||
"jsx": "react", | ||
"allowJs": true, | ||
"composite": true, | ||
"declaration": true, | ||
"sourceMap": true, | ||
"skipLibCheck": true, | ||
"outDir": "dist", | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
"outDir": "dist", | ||
"allowJs": true, | ||
"composite": true, | ||
"rootDir": "." | ||
@@ -22,0 +22,0 @@ }, |
@@ -24,2 +24,17 @@ declare module '*.module.css' { | ||
declare module '*.css' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module '*.sass' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module '*.scss' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module '*.mdx' { | ||
@@ -26,0 +41,0 @@ const component: any; |
Sorry, the diff of this file is not supported yet
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 1 instance 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 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
19320
0
0
259
1