@wyw-in-js/processor-utils 2.0.0 → 2.1.0

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.
@@ -1 +1 @@
1
- {"mappings":"","names":[],"sources":["../../src/utils/types.ts"],"version":3,"sourcesContent":["import type { ClassNameFn, VariableNameFn } from '@wyw-in-js/shared';\n\nexport interface IOptions {\n classNameSlug?: string | ClassNameFn;\n displayName: boolean;\n extensions?: string[];\n variableNameConfig?: 'var' | 'dashes' | 'raw';\n variableNameSlug?: string | VariableNameFn;\n}\n\nexport type IFileContext = {\n filename?: string | null;\n root?: string | null;\n};\n"],"file":"types.js"}
1
+ {"mappings":"","names":[],"sources":["../../src/utils/types.ts"],"version":3,"sourcesContent":["import type {\n ClassNameFn,\n VariableNameFn,\n WywInJsProcessorOptions,\n} from '@wyw-in-js/shared';\n\nexport interface IOptions {\n classNameSlug?: string | ClassNameFn;\n displayName: boolean;\n extensions?: string[];\n processors?: WywInJsProcessorOptions;\n variableNameConfig?: 'var' | 'dashes' | 'raw';\n variableNameSlug?: string | VariableNameFn;\n}\n\nexport type IFileContext = {\n filename?: string | null;\n root?: string | null;\n};\n"],"file":"types.js"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@wyw-in-js/processor-utils",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@wyw-in-js/shared": "2.0.0"
6
+ "@wyw-in-js/shared": "2.1.0"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@types/node": "^22.0.0",
@@ -1,8 +1,9 @@
1
- import type { ClassNameFn, VariableNameFn } from '@wyw-in-js/shared';
1
+ import type { ClassNameFn, VariableNameFn, WywInJsProcessorOptions } from '@wyw-in-js/shared';
2
2
  export interface IOptions {
3
3
  classNameSlug?: string | ClassNameFn;
4
4
  displayName: boolean;
5
5
  extensions?: string[];
6
+ processors?: WywInJsProcessorOptions;
6
7
  variableNameConfig?: 'var' | 'dashes' | 'raw';
7
8
  variableNameSlug?: string | VariableNameFn;
8
9
  }