@tailwindcss/oxide 0.0.0-development.1 → 0.0.0-development.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +5 -5
  2. package/index.js +3 -4
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export interface ChangedContent {
8
8
  content?: string
9
9
  extension: string
10
10
  }
11
- export interface Project {
11
+ export interface ScanResult {
12
12
  globs: Array<GlobEntry>
13
13
  files: Array<string>
14
14
  candidates: Array<string>
@@ -17,11 +17,11 @@ export interface GlobEntry {
17
17
  base: string
18
18
  glob: string
19
19
  }
20
- export interface ContentPathInfo {
20
+ export interface ScanOptions {
21
21
  base: string
22
+ globs?: boolean
22
23
  }
23
- export function resolveProject(args: ContentPathInfo): Project
24
- export function resolveProjectCandidates(args: ContentPathInfo): Array<Array<string>>
24
+ export function scanDir(args: ScanOptions): ScanResult
25
25
  export enum IO {
26
26
  Sequential = 1,
27
27
  Parallel = 2
@@ -30,4 +30,4 @@ export enum Parsing {
30
30
  Sequential = 4,
31
31
  Parallel = 8
32
32
  }
33
- export function parseCandidateStrings(input: Array<ChangedContent>, strategy: number): Array<string>
33
+ export function scanFiles(input: Array<ChangedContent>, strategy: number): Array<string>
package/index.js CHANGED
@@ -281,10 +281,9 @@ if (!nativeBinding) {
281
281
  throw new Error(`Failed to load native binding`)
282
282
  }
283
283
 
284
- const { resolveProject, resolveProjectCandidates, IO, Parsing, parseCandidateStrings } = nativeBinding
284
+ const { scanDir, IO, Parsing, scanFiles } = nativeBinding
285
285
 
286
- module.exports.resolveProject = resolveProject
287
- module.exports.resolveProjectCandidates = resolveProjectCandidates
286
+ module.exports.scanDir = scanDir
288
287
  module.exports.IO = IO
289
288
  module.exports.Parsing = Parsing
290
- module.exports.parseCandidateStrings = parseCandidateStrings
289
+ module.exports.scanFiles = scanFiles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/oxide",
3
- "version": "0.0.0-development.1",
3
+ "version": "0.0.0-development.2",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "napi": {
@@ -36,7 +36,7 @@
36
36
  "version": "npx napi version"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@tailwindcss/oxide-darwin-arm64": "0.0.0-development.1",
39
+ "@tailwindcss/oxide-darwin-arm64": "0.0.0-development.2",
40
40
  "@tailwindcss/oxide-darwin-x64": "0.0.0",
41
41
  "@tailwindcss/oxide-freebsd-x64": "0.0.0",
42
42
  "@tailwindcss/oxide-linux-arm-gnueabihf": "0.0.0",