@master/css.compiler
Advanced tools
Comparing version 2.0.0-beta.86 to 2.0.0-beta.87
@@ -12,3 +12,3 @@ import { CompilerOptions } from './options'; | ||
readonly moduleHMREvent: string; | ||
init(): Promise<this>; | ||
init(): this; | ||
compile(): this; | ||
@@ -18,6 +18,7 @@ extract(name: string, content: string): string[]; | ||
readSourcePaths(): string[]; | ||
readConfig(): Promise<Config>; | ||
readConfig(): Config; | ||
checkSourcePath(name: string): boolean; | ||
get hasConfig(): boolean; | ||
get configPath(): string; | ||
get config(): Config; | ||
} |
@@ -1,2 +0,2 @@ | ||
import MasterCSS from '@master/css'; | ||
import MasterCSS, { Config } from '@master/css'; | ||
import type { Pattern as FastGlobPattern } from 'fast-glob'; | ||
@@ -14,3 +14,3 @@ declare const options: CompilerOptions; | ||
ignoredClasses?: string[] | RegExp[]; | ||
config?: string; | ||
config?: string | Config; | ||
debug?: boolean; | ||
@@ -17,0 +17,0 @@ cwd?: string; |
@@ -1,1 +0,1 @@ | ||
{"name":"@master/css.compiler","scripts":{"build":"aron pack --platform=node","dev":"npm run build -- --watch","lint":"eslint ./src","test":"jest"},"license":"MIT","description":"The ahead-of-time compiler of Master CSS","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","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/compiler"},"keywords":["webpack","plugin","integration","vite","parcel","build tools","css","mastercss","vite-plugin"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"dependencies":{"@master/css":"^2.0.0-beta.86","aronlog":"^1.0.0-beta.32","fast-glob":"^3.2.12","minimatch":"^5.1.1","normalize-path":"^3.0.0"},"version":"2.0.0-beta.86"} | ||
{"name":"@master/css.compiler","scripts":{"build":"aron pack --platform=node","dev":"npm run build -- --watch","lint":"eslint ./src","test":"jest"},"license":"MIT","description":"The ahead-of-time compiler of Master CSS","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","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/compiler"},"keywords":["webpack","plugin","integration","vite","parcel","build tools","css","mastercss","vite-plugin"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"dependencies":{"@master/css":"^2.0.0-beta.87","aronlog":"^1.0.0-beta.32","cross-import":"^1.4.4","fast-glob":"^3.2.12","minimatch":"^5.1.1","normalize-path":"^3.0.0"},"version":"2.0.0-beta.87"} |
@@ -64,3 +64,3 @@ <br> | ||
```ts | ||
const compiler = await new MasterCSSCompiler().init() | ||
const compiler = new MasterCSSCompiler() | ||
``` | ||
@@ -67,0 +67,0 @@ |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
4
20007
6
89
+ Addedcross-import@^1.4.4
+ Added@esbuild/android-arm@0.16.17(transitive)
+ Added@esbuild/android-arm64@0.16.17(transitive)
+ Added@esbuild/android-x64@0.16.17(transitive)
+ Added@esbuild/darwin-arm64@0.16.17(transitive)
+ Added@esbuild/darwin-x64@0.16.17(transitive)
+ Added@esbuild/freebsd-arm64@0.16.17(transitive)
+ Added@esbuild/freebsd-x64@0.16.17(transitive)
+ Added@esbuild/linux-arm@0.16.17(transitive)
+ Added@esbuild/linux-arm64@0.16.17(transitive)
+ Added@esbuild/linux-ia32@0.16.17(transitive)
+ Added@esbuild/linux-loong64@0.16.17(transitive)
+ Added@esbuild/linux-mips64el@0.16.17(transitive)
+ Added@esbuild/linux-ppc64@0.16.17(transitive)
+ Added@esbuild/linux-riscv64@0.16.17(transitive)
+ Added@esbuild/linux-s390x@0.16.17(transitive)
+ Added@esbuild/linux-x64@0.16.17(transitive)
+ Added@esbuild/netbsd-x64@0.16.17(transitive)
+ Added@esbuild/openbsd-x64@0.16.17(transitive)
+ Added@esbuild/sunos-x64@0.16.17(transitive)
+ Added@esbuild/win32-arm64@0.16.17(transitive)
+ Added@esbuild/win32-ia32@0.16.17(transitive)
+ Added@esbuild/win32-x64@0.16.17(transitive)
+ Addedcross-import@1.5.5(transitive)
+ Addedesbuild@0.16.17(transitive)
+ Addedfs-extra@11.2.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedto-extend@1.5.5(transitive)
+ Addedto-read-package@1.5.5(transitive)
+ Addeduniversalify@2.0.1(transitive)
+ Addedupath@2.0.1(transitive)
Updated@master/css@^2.0.0-beta.87