Comparing version 2.0.2 to 2.1.0
@@ -1,3 +0,3 @@ | ||
import type { LocatorInfo, LocatorOptions } from './type'; | ||
export declare function locateMany(pattern: string | string[], options?: Partial<LocatorOptions>): Promise<LocatorInfo[]>; | ||
export declare function locate(pattern: string | string[], options?: Partial<LocatorOptions>): Promise<LocatorInfo | undefined>; | ||
import type { LocatorInfo, LocatorOptionsInput } from './types'; | ||
export declare function locateMany(pattern: string | string[], options?: LocatorOptionsInput): Promise<LocatorInfo[]>; | ||
export declare function locate(pattern: string | string[], options?: LocatorOptionsInput): Promise<LocatorInfo | undefined>; |
export * from './async'; | ||
export * from './sync'; | ||
export * from './type'; | ||
export * from './types'; | ||
export * from './utils'; |
@@ -1,3 +0,3 @@ | ||
import type { LocatorInfo, LocatorOptions } from './type'; | ||
export declare function locateManySync(pattern: string | string[], options?: Partial<LocatorOptions>): LocatorInfo[]; | ||
export declare function locateSync(pattern: string | string[], options?: Partial<LocatorOptions>): LocatorInfo | undefined; | ||
import type { LocatorInfo, LocatorOptionsInput } from './types'; | ||
export declare function locateManySync(pattern: string | string[], options?: LocatorOptionsInput): LocatorInfo[]; | ||
export declare function locateSync(pattern: string | string[], options?: LocatorOptionsInput): LocatorInfo | undefined; |
@@ -1,3 +0,4 @@ | ||
import type { LocatorInfo, LocatorOptions } from './type'; | ||
export declare function buildLocatorOptions(options?: Partial<LocatorOptions>): LocatorOptions; | ||
import type { LocatorInfo, LocatorOptions, LocatorOptionsInput } from './types'; | ||
export declare function buildLocatorPatterns(pattern: string | string[]): string[]; | ||
export declare function buildLocatorOptions(options?: LocatorOptionsInput): LocatorOptions; | ||
export declare function pathToLocatorInfo(input: string, skipResolve?: boolean): LocatorInfo; | ||
@@ -4,0 +5,0 @@ export declare function isLocatorInfo(input: unknown): input is LocatorInfo; |
{ | ||
"name": "locter", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "A library to locate a file/module by criteria and load it!", | ||
@@ -54,22 +54,22 @@ "author": { | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@swc/core": "^1.3.104", | ||
"@swc/jest": "^0.2.27", | ||
"@tada5hi/commitlint-config": "^1.1.4", | ||
"@tada5hi/eslint-config-typescript": "^1.2.7", | ||
"@tada5hi/semantic-release": "^0.3.0", | ||
"@tada5hi/tsconfig": "^0.5.0", | ||
"@swc/core": "^1.4.11", | ||
"@swc/jest": "^0.2.36", | ||
"@tada5hi/commitlint-config": "^1.2.0", | ||
"@tada5hi/eslint-config-typescript": "^1.2.10", | ||
"@tada5hi/semantic-release": "^0.3.1", | ||
"@tada5hi/tsconfig": "^0.5.1", | ||
"@types/flat": "^5.0.2", | ||
"@types/jest": "^29.5.4", | ||
"@types/node": "^20.9.5", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.12.2", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.48.0", | ||
"husky": "^8.0.3", | ||
"eslint": "^8.57.0", | ||
"husky": "^9.0.11", | ||
"jest": "^29.6.4", | ||
"rimraf": "^5.0.5", | ||
"rollup": "^4.9.4", | ||
"rollup": "^4.13.2", | ||
"semantic-release": "^22.0.8", | ||
"typescript": "^5.1.6" | ||
"typescript": "^5.4.3" | ||
}, | ||
"dependencies": { | ||
"destr": "^2.0.2", | ||
"destr": "^2.0.3", | ||
"ebec": "^2.3.0", | ||
@@ -79,4 +79,4 @@ "fast-glob": "^3.3.2", | ||
"jiti": "^1.21.0", | ||
"yaml": "^2.3.4" | ||
"yaml": "^2.4.1" | ||
} | ||
} |
@@ -47,6 +47,3 @@ # Locter 🔥 | ||
let files = await locateMany( | ||
'files/example.{js,.ts}', | ||
{ | ||
path: process.cwd() | ||
} | ||
'files/example.{js,.ts}' | ||
); | ||
@@ -63,6 +60,3 @@ | ||
files = await locateMany( | ||
'files/*.{js,ts}', | ||
{ | ||
path: process.cwd() | ||
} | ||
'files/*.{js,ts}' | ||
); | ||
@@ -92,6 +86,3 @@ | ||
let file = await locate( | ||
'files/example.{js,.ts}', | ||
{ | ||
path: process.cwd() | ||
} | ||
'files/example.{js,.ts}' | ||
); | ||
@@ -118,6 +109,3 @@ | ||
const file = await locate( | ||
'files/example.{js,.ts}', | ||
{ | ||
path: process.cwd() | ||
} | ||
'files/example.{js,.ts}' | ||
); | ||
@@ -142,6 +130,3 @@ | ||
const file = await locateSync( | ||
'files/example.{js,.ts}', | ||
{ | ||
path: process.cwd() | ||
} | ||
'files/example.{js,.ts}' | ||
); | ||
@@ -148,0 +133,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
147693
1569
167
Updateddestr@^2.0.3
Updatedyaml@^2.4.1