@rjweb/utils
Advanced tools
Comparing version 1.12.4 to 1.12.5
@@ -163,2 +163,5 @@ "use strict"; | ||
break; | ||
Object.assign(dirent, { | ||
path: path.join(folder, dirent.name) | ||
}); | ||
yield dirent; | ||
@@ -165,0 +168,0 @@ if (options?.recursive && dirent.isDirectory()) { |
{ | ||
"name": "@rjweb/utils", | ||
"version": "1.12.3", | ||
"version": "1.12.5", | ||
"description": "Easy and Lightweight Utilities", | ||
@@ -13,3 +13,3 @@ "module": "lib/esm/index.js", | ||
"build": "rm -rf lib && tsc && esbuild `find src -type f -name \"*.ts\"` --platform='node' --ignore-annotations --format='cjs' --outdir='lib/cjs' && esbuild `find src -type f -name \"*.ts\"` --platform='node' --ignore-annotations --format='esm' --outdir='lib/esm' && cp package.json lib/cjs/pckg.json && cp package.json lib/esm/pckg.json", | ||
"docs": "rm -rf docs && typedoc --out docs src/index.ts && sed -i -e 's|<meta charSet=\"utf-8\"/>|<meta charSet=\"utf-8\"/><link rel=\"icon\" type=\"image/png\" href=\"https://img.rjansen.de/rjweb/icon.png\">|' docs/**/*.html && chmod -R a+rw docs", | ||
"docs": "rm -rf docs && typedoc --out docs src/index.ts && sed -i -e 's|<meta charSet=\"utf-8\"/>|<meta charSet=\"utf-8\"/><link rel=\"icon\" type=\"image/png\" href=\"https://cdn.rjns.dev/rjweb/icon.png\">|' docs/**/*.html && chmod -R a+rw docs", | ||
"test": "yarn build && node test" | ||
@@ -16,0 +16,0 @@ }, |
@@ -126,2 +126,5 @@ import * as fs from "fs"; | ||
break; | ||
Object.assign(dirent, { | ||
path: path.join(folder, dirent.name) | ||
}); | ||
yield dirent; | ||
@@ -128,0 +131,0 @@ if (options?.recursive && dirent.isDirectory()) { |
{ | ||
"name": "@rjweb/utils", | ||
"version": "1.12.3", | ||
"version": "1.12.5", | ||
"description": "Easy and Lightweight Utilities", | ||
@@ -13,3 +13,3 @@ "module": "lib/esm/index.js", | ||
"build": "rm -rf lib && tsc && esbuild `find src -type f -name \"*.ts\"` --platform='node' --ignore-annotations --format='cjs' --outdir='lib/cjs' && esbuild `find src -type f -name \"*.ts\"` --platform='node' --ignore-annotations --format='esm' --outdir='lib/esm' && cp package.json lib/cjs/pckg.json && cp package.json lib/esm/pckg.json", | ||
"docs": "rm -rf docs && typedoc --out docs src/index.ts && sed -i -e 's|<meta charSet=\"utf-8\"/>|<meta charSet=\"utf-8\"/><link rel=\"icon\" type=\"image/png\" href=\"https://img.rjansen.de/rjweb/icon.png\">|' docs/**/*.html && chmod -R a+rw docs", | ||
"docs": "rm -rf docs && typedoc --out docs src/index.ts && sed -i -e 's|<meta charSet=\"utf-8\"/>|<meta charSet=\"utf-8\"/><link rel=\"icon\" type=\"image/png\" href=\"https://cdn.rjns.dev/rjweb/icon.png\">|' docs/**/*.html && chmod -R a+rw docs", | ||
"test": "yarn build && node test" | ||
@@ -16,0 +16,0 @@ }, |
@@ -111,12 +111,7 @@ /// <reference types="node" /> | ||
* | ||
* async function recursiveWalk(folder: string) { | ||
* for await (const dirent of filesystem.walk(folder)) { | ||
* if (dirent.isDirectory()) { | ||
* await recursiveWalk(path.join(folder, dirent.name)) | ||
* } else { | ||
* console.log(dirent.name) | ||
* } | ||
* for await (const dirent of filesystem.walk('./node_modules', { async: true, recursive: true })) { | ||
* const spaces = path.relative('./node_modules', dirent.path).split(path.sep).length - 1 | ||
* | ||
* console.log(' '.repeat(spaces), dirent.name) | ||
* } | ||
* | ||
* recursiveWalk('./src').catch(console.error) | ||
* ``` | ||
@@ -123,0 +118,0 @@ * @since 1.12.3 |
{ | ||
"name": "@rjweb/utils", | ||
"version": "1.12.4", | ||
"version": "1.12.5", | ||
"description": "Easy and Lightweight Utilities", | ||
@@ -5,0 +5,0 @@ "module": "lib/esm/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
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
968071
6841