@master/css-extractor
Advanced tools
Comparing version 2.0.0-rc.45 to 2.0.0-rc.46
@@ -1,9 +0,7 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { Options } from './options'; | ||
import { MasterCSS } from '@master/css'; | ||
import type { Config } from '@master/css'; | ||
import fs from 'fs'; | ||
import chokidar from 'chokidar'; | ||
import { type ChokidarOptions, type FSWatcher } from 'chokidar'; | ||
import { EventEmitter } from 'node:events'; | ||
import { Stats } from 'node:fs'; | ||
export default class CSSExtractor extends EventEmitter { | ||
@@ -16,3 +14,3 @@ customOptions: Options | string; | ||
watching: boolean; | ||
watchers: chokidar.FSWatcher[]; | ||
watchers: FSWatcher[]; | ||
initialized: boolean; | ||
@@ -41,8 +39,10 @@ constructor(customOptions?: Options | string, cwd?: string); | ||
export(filename?: string): void; | ||
watchSource(paths: string | readonly string[], watchOptions?: chokidar.WatchOptions): Promise<void>; | ||
watch(events: string, paths: string | readonly string[], handle: (path: string, stats?: fs.Stats) => void, watchOptions?: chokidar.WatchOptions): Promise<void>; | ||
private initWatch; | ||
private disableWatch; | ||
startWatch(): Promise<void>; | ||
closeWatch(): Promise<void>; | ||
watchSource(paths: string | string[], watchOptions?: ChokidarOptions): Promise<void>; | ||
watch(events: string, paths: string | string[], handle: (path: string, stats?: Stats | undefined) => void, watchOptions?: ChokidarOptions): Promise<void>; | ||
startWatch(options?: { | ||
emit?: boolean; | ||
}): Promise<void>; | ||
closeWatch(options?: { | ||
emit?: boolean; | ||
}): Promise<void>; | ||
/** | ||
@@ -49,0 +49,0 @@ * computed from `options.sources` |
@@ -1,1 +0,1 @@ | ||
{"name":"@master/css-extractor","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"techor build --watch","lint":"eslint ./src","type-check":"tsc --noEmit","test":"jest"},"license":"MIT","description":"Master CSS static extractor for various raw text","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/extractor"},"keywords":["plugin","integration","extractor","static","build tools","css","mastercss"],"sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.mjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","types":"./dist/index.d.ts"},"./options":{"import":"./dist/options/index.mjs","require":"./dist/options/index.cjs","types":"./dist/options/index.d.ts"}},"typesVersions":{"*":{".":["./dist/index.d.js"],"./options":["./dist/options/index.d.ts"]}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.45","@master/css-validator":"^2.0.0-rc.45","@master/css-explore-config":"^2.0.0-rc.45","@techor/extend":"^3.0.22","@techor/glob":"^3.0.22","@techor/log":"^3.0.22","chokidar":"^3.6.0","explore-config":"^3.0.22","minimatch":"^9.0.3"},"devDependencies":{"shared":"^2.0.0-rc.45"},"version":"2.0.0-rc.45"} | ||
{"name":"@master/css-extractor","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"techor build --watch","lint":"eslint","type-check":"tsc --noEmit","test":"vitest"},"license":"MIT","description":"Master CSS static extractor for various raw text","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/extractor"},"keywords":["plugin","integration","extractor","static","build tools","css","mastercss"],"sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.mjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./options":{"types":"./dist/options/index.d.ts","import":"./dist/options/index.mjs","require":"./dist/options/index.cjs"}},"typesVersions":{"*":{".":["./dist/index.d.js"],"./options":["./dist/options/index.d.ts"]}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.46","@master/css-explore-config":"^2.0.0-rc.46","@master/css-validator":"^2.0.0-rc.46","@techor/extend":"^3.1.6","@techor/glob":"^3.1.6","@techor/log":"^3.1.6","chokidar":"^4.0.2","explore-config":"^3.1.6","minimatch":"^10.0.1"},"devDependencies":{"shared":"^2.0.0-rc.46"},"version":"2.0.0-rc.46"} |
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
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
60199
1405
+ Addedchokidar@4.0.3(transitive)
+ Addedminimatch@10.0.1(transitive)
+ Addedreaddirp@4.0.2(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedreaddirp@3.6.0(transitive)
Updated@master/css@^2.0.0-rc.46
Updated@techor/extend@^3.1.6
Updated@techor/glob@^3.1.6
Updated@techor/log@^3.1.6
Updatedchokidar@^4.0.2
Updatedexplore-config@^3.1.6
Updatedminimatch@^10.0.1