@u4/tiny-glob
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -1,2 +0,2 @@ | ||
import { BlobOptions } from './common'; | ||
import { BlobOptions } from './common.js'; | ||
export declare let CACHE: { | ||
@@ -3,0 +3,0 @@ [key: string]: boolean; |
@@ -14,6 +14,6 @@ "use strict"; | ||
const fs = require("fs"); | ||
const globrex_1 = require("./globrex"); | ||
const globalyzer_1 = require("./globalyzer"); | ||
const globrex_js_1 = require("./globrex.js"); | ||
const globalyzer_js_1 = require("./globalyzer.js"); | ||
const path_1 = require("path"); | ||
const common_1 = require("./common"); | ||
const common_js_1 = require("./common.js"); | ||
exports.CACHE = {}; | ||
@@ -28,3 +28,5 @@ function walk(output, prefix, lexer, opts, dirname = '', level = 0) { | ||
} | ||
catch (_e) { } | ||
catch (_e) { | ||
// console.log(_e); | ||
} | ||
const { dot, filesOnly } = opts; | ||
@@ -34,3 +36,3 @@ for (const file of files) { | ||
const relpath = dirname ? (0, path_1.join)(dirname, file) : file; | ||
if (!dot && common_1.isHidden.test(relpath)) | ||
if (!dot && common_js_1.isHidden.test(relpath)) | ||
continue; | ||
@@ -73,3 +75,3 @@ const isMatch = lexer.regex.test(relpath); | ||
return []; | ||
const glob = (0, globalyzer_1.default)(str); | ||
const glob = (0, globalyzer_js_1.default)(str); | ||
opts.cwd = opts.cwd || '.'; | ||
@@ -95,3 +97,3 @@ const opts2 = opts; | ||
let matches = []; | ||
const { path } = (0, globrex_1.default)(glob.glob, { filepath: true, globstar: true, extended: true }); | ||
const { path } = (0, globrex_js_1.default)(glob.glob, { filepath: true, globstar: true, extended: true }); | ||
if (!path) | ||
@@ -98,0 +100,0 @@ return []; |
@@ -1,2 +0,2 @@ | ||
import { type Path } from './globrex'; | ||
import { type Path } from './globrex.js'; | ||
export declare const isHidden: RegExp; | ||
@@ -3,0 +3,0 @@ export declare type BlobOptions = { |
@@ -1,5 +0,5 @@ | ||
export { type BlobOptions } from './common'; | ||
export { glob } from './async'; | ||
export { glob as sync } from './sync'; | ||
export { glob as async } from './async'; | ||
export { glob as default } from './async'; | ||
export { type BlobOptions } from './common.js'; | ||
export { glob } from './async.js'; | ||
export { glob as sync } from './sync.js'; | ||
export { glob as async } from './async.js'; | ||
export { glob as default } from './async.js'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = exports.async = exports.sync = exports.glob = void 0; | ||
var async_1 = require("./async"); | ||
Object.defineProperty(exports, "glob", { enumerable: true, get: function () { return async_1.glob; } }); | ||
var sync_1 = require("./sync"); | ||
Object.defineProperty(exports, "sync", { enumerable: true, get: function () { return sync_1.glob; } }); | ||
var async_2 = require("./async"); | ||
Object.defineProperty(exports, "async", { enumerable: true, get: function () { return async_2.glob; } }); | ||
var async_3 = require("./async"); | ||
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return async_3.glob; } }); | ||
var async_js_1 = require("./async.js"); | ||
Object.defineProperty(exports, "glob", { enumerable: true, get: function () { return async_js_1.glob; } }); | ||
var sync_js_1 = require("./sync.js"); | ||
Object.defineProperty(exports, "sync", { enumerable: true, get: function () { return sync_js_1.glob; } }); | ||
var async_js_2 = require("./async.js"); | ||
Object.defineProperty(exports, "async", { enumerable: true, get: function () { return async_js_2.glob; } }); | ||
var async_js_3 = require("./async.js"); | ||
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return async_js_3.glob; } }); |
@@ -1,2 +0,2 @@ | ||
import { BlobOptions } from './common'; | ||
import { BlobOptions } from './common.js'; | ||
export declare let CACHE: { | ||
@@ -3,0 +3,0 @@ [key: string]: boolean; |
@@ -5,6 +5,6 @@ "use strict"; | ||
const fs = require("fs"); | ||
const globrex_1 = require("./globrex"); | ||
const globalyzer_1 = require("./globalyzer"); | ||
const globrex_js_1 = require("./globrex.js"); | ||
const globalyzer_js_1 = require("./globalyzer.js"); | ||
const path_1 = require("path"); | ||
const common_1 = require("./common"); | ||
const common_js_1 = require("./common.js"); | ||
exports.CACHE = {}; | ||
@@ -23,3 +23,3 @@ function walk(output, prefix, lexer, opts, dirname = '', level = 0) { | ||
const relpath = dirname ? (0, path_1.join)(dirname, file) : file; | ||
if (!dot && common_1.isHidden.test(relpath)) | ||
if (!dot && common_js_1.isHidden.test(relpath)) | ||
continue; | ||
@@ -59,3 +59,3 @@ const isMatch = lexer.regex.test(relpath); | ||
return []; | ||
let glob = (0, globalyzer_1.default)(str); | ||
let glob = (0, globalyzer_js_1.default)(str); | ||
opts.cwd = opts.cwd || '.'; | ||
@@ -81,3 +81,3 @@ const opts2 = opts; | ||
let matches = []; | ||
const { path } = (0, globrex_1.default)(glob.glob, { filepath: true, globstar: true, extended: true }); | ||
const { path } = (0, globrex_js_1.default)(glob.glob, { filepath: true, globstar: true, extended: true }); | ||
if (!path) | ||
@@ -84,0 +84,0 @@ return []; |
@@ -1,2 +0,2 @@ | ||
import { BlobOptions } from './common'; | ||
import { BlobOptions } from './common.js'; | ||
export declare let CACHE: { | ||
@@ -3,0 +3,0 @@ [key: string]: boolean; |
import * as fs from 'fs'; | ||
import globrex from './globrex'; | ||
import globalyzer from './globalyzer'; | ||
import globrex from './globrex.js'; | ||
import globalyzer from './globalyzer.js'; | ||
import { join, resolve, relative } from 'path'; | ||
import { isHidden } from './common'; | ||
import { isHidden } from './common.js'; | ||
export let CACHE = {}; | ||
@@ -14,3 +14,5 @@ async function walk(output, prefix, lexer, opts, dirname = '', level = 0) { | ||
} | ||
catch (_e) { } | ||
catch (_e) { | ||
// console.log(_e); | ||
} | ||
const { dot, filesOnly } = opts; | ||
@@ -17,0 +19,0 @@ for (const file of files) { |
@@ -1,2 +0,2 @@ | ||
import { type Path } from './globrex'; | ||
import { type Path } from './globrex.js'; | ||
export declare const isHidden: RegExp; | ||
@@ -3,0 +3,0 @@ export declare type BlobOptions = { |
@@ -1,5 +0,5 @@ | ||
export { type BlobOptions } from './common'; | ||
export { glob } from './async'; | ||
export { glob as sync } from './sync'; | ||
export { glob as async } from './async'; | ||
export { glob as default } from './async'; | ||
export { type BlobOptions } from './common.js'; | ||
export { glob } from './async.js'; | ||
export { glob as sync } from './sync.js'; | ||
export { glob as async } from './async.js'; | ||
export { glob as default } from './async.js'; |
@@ -1,4 +0,4 @@ | ||
export { glob } from './async'; | ||
export { glob as sync } from './sync'; | ||
export { glob as async } from './async'; | ||
export { glob as default } from './async'; | ||
export { glob } from './async.js'; | ||
export { glob as sync } from './sync.js'; | ||
export { glob as async } from './async.js'; | ||
export { glob as default } from './async.js'; |
@@ -1,2 +0,2 @@ | ||
import { BlobOptions } from './common'; | ||
import { BlobOptions } from './common.js'; | ||
export declare let CACHE: { | ||
@@ -3,0 +3,0 @@ [key: string]: boolean; |
import * as fs from 'fs'; | ||
import globrex from './globrex'; | ||
import globalyzer from './globalyzer'; | ||
import globrex from './globrex.js'; | ||
import globalyzer from './globalyzer.js'; | ||
import { join, resolve, relative } from 'path'; | ||
import { isHidden } from './common'; | ||
import { isHidden } from './common.js'; | ||
export let CACHE = {}; | ||
@@ -7,0 +7,0 @@ function walk(output, prefix, lexer, opts, dirname = '', level = 0) { |
{ | ||
"name": "@u4/tiny-glob", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Tiny and extremely fast globbing", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
56896
1377
0