weapp-tailwindcss 2.6.2 → 2.7.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.
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var escape = require('@weapp-core/escape');
4
+
5
+ function internalCssSelectorReplacer(selectors, options = {
6
+ escapeMap: escape.SimpleMappingChars2String
7
+ }) {
8
+ const { mangleContext, escapeMap } = options;
9
+ if (mangleContext) {
10
+ selectors = mangleContext.cssHandler(selectors);
11
+ }
12
+ return escape.escape(selectors, {
13
+ map: escapeMap
14
+ });
15
+ }
16
+
17
+ exports.internalCssSelectorReplacer = internalCssSelectorReplacer;
@@ -0,0 +1,15 @@
1
+ import { escape, SimpleMappingChars2String } from '@weapp-core/escape';
2
+
3
+ function internalCssSelectorReplacer(selectors, options = {
4
+ escapeMap: SimpleMappingChars2String
5
+ }) {
6
+ const { mangleContext, escapeMap } = options;
7
+ if (mangleContext) {
8
+ selectors = mangleContext.cssHandler(selectors);
9
+ }
10
+ return escape(selectors, {
11
+ map: escapeMap
12
+ });
13
+ }
14
+
15
+ export { internalCssSelectorReplacer as i };
package/dist/types.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import type { Rule } from 'postcss';
2
- import type { IClassGeneratorOptions, ClassGenerator } from 'tailwindcss-mangle-shared';
3
- import type { GeneratorResult } from '@babel/generator';
2
+ import type { IClassGeneratorOptions, ClassGenerator } from '@tailwindcss-mangle/shared';
4
3
  import type { InjectPreflight } from './postcss/preflight';
5
4
  export type ItemOrItemArray<T> = T | T[];
6
5
  export type AppType = 'uni-app' | 'uni-app-vite' | 'taro' | 'remax' | 'rax' | 'native' | 'kbone' | 'mpx';
@@ -39,6 +38,7 @@ export type IJsHandlerOptions = {
39
38
  arbitraryValues?: IArbitraryValues;
40
39
  mangleContext?: IMangleScopeContext;
41
40
  jsPreserveClass?: (keyword: string) => boolean | undefined;
41
+ strategy?: UserDefinedOptions['jsEscapeStrategy'];
42
42
  };
43
43
  export interface RawSource {
44
44
  start: number;
@@ -94,6 +94,7 @@ export interface UserDefinedOptions {
94
94
  injectAdditionalCssVarScope?: boolean;
95
95
  jsPreserveClass?: (keyword: string) => boolean | undefined;
96
96
  disabledDefaultTemplateHandler?: boolean;
97
+ jsEscapeStrategy?: 'regenerate' | 'replace';
97
98
  }
98
99
  export interface IMangleScopeContext {
99
100
  rawOptions: UserDefinedOptions['mangle'];
@@ -108,18 +109,14 @@ export interface ICommonReplaceOptions {
108
109
  keepEOL?: boolean;
109
110
  escapeMap?: Record<string, string>;
110
111
  }
111
- export type ICustomRegexp = {
112
- tagRegexp: RegExp;
113
- attrRegexp: RegExp;
114
- tag: string;
115
- attrs: ItemOrItemArray<string | RegExp>;
116
- };
117
112
  export interface ITemplateHandlerOptions extends ICommonReplaceOptions {
118
113
  customAttributesEntities?: ICustomAttributesEntities;
119
114
  escapeMap?: Record<string, string>;
120
115
  mangleContext?: IMangleScopeContext;
121
116
  inlineWxs?: boolean;
122
- jsHandler?: (rawSource: string, set: Set<string>) => GeneratorResult;
117
+ jsHandler?: (rawSource: string, set: Set<string>) => {
118
+ code: string;
119
+ };
123
120
  runtimeSet?: Set<string>;
124
121
  disabledDefaultTemplateHandler?: boolean;
125
122
  }
@@ -130,7 +127,9 @@ export type InternalUserDefinedOptions = Required<Omit<UserDefinedOptions, GlobO
130
127
  supportCustomLengthUnitsPatch: ILengthUnitsPatchOptions | false;
131
128
  templateHandler: (rawSource: string, options?: ITemplateHandlerOptions) => string;
132
129
  styleHandler: (rawSource: string, options: IStyleHandlerOptions) => string;
133
- jsHandler: (rawSource: string, set: Set<string>) => GeneratorResult;
130
+ jsHandler: (rawSource: string, set: Set<string>) => {
131
+ code: string;
132
+ };
134
133
  escapeMap: Record<string, string>;
135
134
  patch: () => void;
136
135
  customReplaceDictionary: Record<string, string>;
package/dist/vite.js CHANGED
@@ -2,24 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var options = require('./options-c5e1d1b4.js');
6
- var postcss = require('./postcss-4c88cd6d.js');
7
- var defaults = require('./defaults-d79e9245.js');
5
+ var options = require('./options-7a4ffa6a.js');
6
+ var postcss = require('./postcss-4e99a8e8.js');
7
+ var defaults = require('./defaults-344ba6d9.js');
8
8
  require('micromatch');
9
- require('@babel/types');
9
+ require('magic-string');
10
+ require('./replace.js');
11
+ require('@weapp-core/escape');
12
+ require('./shared-df9de23f.js');
13
+ require('@weapp-core/regex');
10
14
  require('@babel/generator');
11
15
  require('@babel/parser');
12
16
  require('@babel/traverse');
13
- require('./replace.js');
14
- require('./dic-05980807.js');
15
- require('./shared-4eed0e5c.js');
17
+ require('@babel/types');
16
18
  require('postcss');
17
19
  require('@csstools/postcss-is-pseudo-class');
18
20
  require('node:path');
19
21
  require('node:fs');
20
22
  require('semver');
21
23
  require('tailwindcss-patch');
22
- require('tailwindcss-mangle-shared');
24
+ require('@tailwindcss-mangle/shared');
23
25
  require('postcss-selector-parser');
24
26
 
25
27
  function UnifiedViteWeappTailwindcssPlugin(options$1 = {}) {
package/dist/vite.mjs CHANGED
@@ -1,21 +1,23 @@
1
- import { g as getOptions, a as createTailwindcssPatcher } from './options-244dcceb.mjs';
2
- import { v as vitePluginName } from './postcss-99efb521.mjs';
3
- import { g as getGroupedEntries } from './defaults-c397b5f9.mjs';
1
+ import { g as getOptions, a as createTailwindcssPatcher } from './options-5a3070c1.mjs';
2
+ import { v as vitePluginName } from './postcss-a551ddc0.mjs';
3
+ import { g as getGroupedEntries } from './defaults-0743f523.mjs';
4
4
  import 'micromatch';
5
- import '@babel/types';
5
+ import 'magic-string';
6
+ import './replace.mjs';
7
+ import '@weapp-core/escape';
8
+ import './shared-fd149084.mjs';
9
+ import '@weapp-core/regex';
6
10
  import '@babel/generator';
7
11
  import '@babel/parser';
8
12
  import '@babel/traverse';
9
- import './replace.mjs';
10
- import './dic-3790a3a4.mjs';
11
- import './shared-686bfc32.mjs';
13
+ import '@babel/types';
12
14
  import 'postcss';
13
15
  import '@csstools/postcss-is-pseudo-class';
14
16
  import 'node:path';
15
17
  import 'node:fs';
16
18
  import 'semver';
17
19
  import 'tailwindcss-patch';
18
- import 'tailwindcss-mangle-shared';
20
+ import '@tailwindcss-mangle/shared';
19
21
  import 'postcss-selector-parser';
20
22
 
21
23
  function UnifiedViteWeappTailwindcssPlugin(options = {}) {
package/dist/webpack.js CHANGED
@@ -4,22 +4,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var path = require('node:path');
6
6
  var fs = require('node:fs');
7
- var options = require('./options-c5e1d1b4.js');
8
- var postcss = require('./postcss-4c88cd6d.js');
9
- var defaults = require('./defaults-d79e9245.js');
7
+ var options = require('./options-7a4ffa6a.js');
8
+ var postcss = require('./postcss-4e99a8e8.js');
9
+ var defaults = require('./defaults-344ba6d9.js');
10
10
  require('micromatch');
11
- require('@babel/types');
11
+ require('magic-string');
12
+ require('./replace.js');
13
+ require('@weapp-core/escape');
14
+ require('./shared-df9de23f.js');
15
+ require('@weapp-core/regex');
12
16
  require('@babel/generator');
13
17
  require('@babel/parser');
14
18
  require('@babel/traverse');
15
- require('./replace.js');
16
- require('./dic-05980807.js');
17
- require('./shared-4eed0e5c.js');
19
+ require('@babel/types');
18
20
  require('postcss');
19
21
  require('@csstools/postcss-is-pseudo-class');
20
22
  require('semver');
21
23
  require('tailwindcss-patch');
22
- require('tailwindcss-mangle-shared');
24
+ require('@tailwindcss-mangle/shared');
23
25
  require('postcss-selector-parser');
24
26
 
25
27
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
package/dist/webpack.mjs CHANGED
@@ -1,21 +1,23 @@
1
1
  import path from 'node:path';
2
2
  import fs from 'node:fs';
3
- import { g as getOptions, a as createTailwindcssPatcher } from './options-244dcceb.mjs';
4
- import { a as pluginName } from './postcss-99efb521.mjs';
5
- import { g as getGroupedEntries } from './defaults-c397b5f9.mjs';
3
+ import { g as getOptions, a as createTailwindcssPatcher } from './options-5a3070c1.mjs';
4
+ import { a as pluginName } from './postcss-a551ddc0.mjs';
5
+ import { g as getGroupedEntries } from './defaults-0743f523.mjs';
6
6
  import 'micromatch';
7
- import '@babel/types';
7
+ import 'magic-string';
8
+ import './replace.mjs';
9
+ import '@weapp-core/escape';
10
+ import './shared-fd149084.mjs';
11
+ import '@weapp-core/regex';
8
12
  import '@babel/generator';
9
13
  import '@babel/parser';
10
14
  import '@babel/traverse';
11
- import './replace.mjs';
12
- import './dic-3790a3a4.mjs';
13
- import './shared-686bfc32.mjs';
15
+ import '@babel/types';
14
16
  import 'postcss';
15
17
  import '@csstools/postcss-is-pseudo-class';
16
18
  import 'semver';
17
19
  import 'tailwindcss-patch';
18
- import 'tailwindcss-mangle-shared';
20
+ import '@tailwindcss-mangle/shared';
19
21
  import 'postcss-selector-parser';
20
22
 
21
23
  class UnifiedWebpackPluginV5 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weapp-tailwindcss",
3
- "version": "2.6.2",
3
+ "version": "2.7.0",
4
4
  "description": "把tailwindcss jit引擎,带给小程序开发者们\nbring tailwindcss jit engine to our miniprogram developers!",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -46,7 +46,8 @@
46
46
  "typesVersions": {
47
47
  "*": {
48
48
  "*": [
49
- "./dist/*"
49
+ "./dist/*",
50
+ "./dist/index.d.ts"
50
51
  ]
51
52
  }
52
53
  },
@@ -101,8 +102,8 @@
101
102
  },
102
103
  "homepage": "https://weapp-tw.icebreaker.top",
103
104
  "devDependencies": {
104
- "@babel/core": "^7.22.9",
105
- "@icebreakers/cli": "^0.1.1",
105
+ "@babel/core": "^7.22.10",
106
+ "@icebreakers/cli": "0.1.1",
106
107
  "@icebreakers/readme": "0.1.0",
107
108
  "@rollup/plugin-alias": "^5.0.0",
108
109
  "@rollup/plugin-commonjs": "^25.0.3",
@@ -117,80 +118,85 @@
117
118
  "@types/gulp": "^4.0.13",
118
119
  "@types/gulp-postcss": "^8.0.3",
119
120
  "@types/jest": "^29.5.3",
121
+ "@types/js-beautify": "^1.14.0",
120
122
  "@types/klaw": "^3.0.3",
121
123
  "@types/loader-utils": "^2.0.3",
122
- "@types/lodash": "^4.14.195",
124
+ "@types/lodash": "^4.14.197",
123
125
  "@types/micromatch": "^4.0.2",
124
- "@types/node": "^20.4.2",
126
+ "@types/node": "^20.4.9",
125
127
  "@types/semver": "^7.5.0",
126
128
  "@types/vinyl": "^2.0.7",
127
129
  "@types/webpack": "^5.28.1",
128
130
  "@types/webpack-sources": "^3.2.0",
129
- "@vitest/coverage-v8": "^0.33.0",
131
+ "@vitest/coverage-v8": "^0.34.1",
130
132
  "autoprefixer": "^10.4.14",
131
133
  "babel-loader": "^9.1.3",
132
134
  "bumpp": "^9.1.1",
133
- "chalk": "4.1.2",
135
+ "colorette": "^2.0.20",
134
136
  "cross-env": "^7.0.3",
135
137
  "css-loader": "^6.8.1",
138
+ "dedent": "^1.5.1",
136
139
  "defu": "6.1.2",
137
- "del": "^6.1.1",
138
- "eslint": "8.45.0",
139
- "eslint-config-icebreaker": "^1.1.0",
140
- "eslint-config-prettier": "^8.8.0",
141
- "eslint-plugin-prettier": "^4.2.1",
142
- "execa": "5",
143
- "fast-glob": "^3.3.0",
140
+ "del": "^7.0.0",
141
+ "eslint": "8.46.0",
142
+ "eslint-config-icebreaker": "^1.2.2",
143
+ "eslint-config-prettier": "^9.0.0",
144
+ "eslint-plugin-prettier": "^5.0.0",
145
+ "execa": "^7.2.0",
146
+ "fast-glob": "^3.3.1",
144
147
  "fs-extra": "^11.1.1",
145
148
  "gulp": "^4.0.2",
146
149
  "gulp-postcss": "^9.0.1",
147
150
  "html-loader": "^4.2.0",
148
- "jest": "^29.6.1",
151
+ "jest": "^29.6.2",
152
+ "js-beautify": "^1.14.9",
149
153
  "klaw": "^4.1.0",
150
154
  "lodash": "^4.17.21",
151
- "magic-string": "^0.30.1",
152
155
  "mini-css-extract-plugin": "^2.7.6",
153
156
  "miniprogram-automator": "^0.12.0",
154
157
  "pkg-types": "^1.0.3",
155
158
  "postcss-load-config": "^4.0.1",
156
159
  "postcss-loader": "^7.3.3",
157
160
  "postcss-rem-to-responsive-pixel": "^5.1.3",
158
- "prettier": "^2.8.8",
161
+ "prettier": "^3.0.1",
159
162
  "promisify-loader-runner": "^1.0.0",
160
- "rollup": "^3.26.3",
163
+ "rollup": "^3.28.0",
161
164
  "rollup-plugin-visualizer": "^5.9.2",
162
165
  "style-loader": "^3.3.3",
163
166
  "tailwind-children": "^0.5.0",
164
167
  "tailwindcss": "^3.3.3",
165
168
  "ts-jest": "^29.1.1",
166
169
  "ts-node": "^10.9.1",
167
- "ts-patch": "^3.0.1",
170
+ "ts-patch": "^3.0.2",
168
171
  "tsd": "^0.28.1",
169
- "tslib": "^2.6.0",
172
+ "tslib": "^2.6.1",
170
173
  "typescript": "^5.1.6",
171
174
  "typescript-transform-paths": "^3.4.6",
172
175
  "vinyl": "^3.0.0",
173
- "vite": "^4.4.4",
174
- "vitest": "^0.33.0",
176
+ "vite": "^4.4.9",
177
+ "vitest": "^0.34.1",
175
178
  "weapp-tailwindcss-children": "^0.1.0",
176
179
  "webpack": "^5.88.2",
177
180
  "webpack-build-utils": "^0.0.4"
178
181
  },
179
182
  "dependencies": {
180
- "@babel/generator": "^7.22.9",
181
- "@babel/parser": "^7.22.7",
182
- "@babel/traverse": "^7.22.8",
183
- "@babel/types": "^7.22.5",
183
+ "@babel/generator": "^7.22.10",
184
+ "@babel/parser": "^7.22.10",
185
+ "@babel/traverse": "^7.22.10",
186
+ "@babel/types": "^7.22.10",
184
187
  "@csstools/postcss-is-pseudo-class": "^4.0.0",
188
+ "@tailwindcss-mangle/shared": "^2.0.4",
189
+ "@weapp-core/escape": "^1.0.0",
190
+ "@weapp-core/regex": "^1.0.0",
185
191
  "loader-utils": "^2.0.3",
192
+ "magic-string": "^0.30.2",
186
193
  "micromatch": "^4.0.5",
187
- "postcss": "8.4.26",
194
+ "postcss": "8.4.27",
188
195
  "postcss-selector-parser": "^6.0.13",
189
196
  "semver": "^7.5.4",
190
- "tailwindcss-mangle-shared": "^1.2.7",
191
- "tailwindcss-patch": "^1.2.7"
197
+ "tailwindcss-patch": "^2.0.4"
192
198
  },
193
- "packageManager": "pnpm@8.6.3",
199
+ "packageManager": "pnpm@8.6.9",
194
200
  "scripts": {
195
201
  "dev": "yarn clean && yarn dts && cross-env NODE_ENV=development rollup -c rollup.config.ts --configPlugin typescript -w",
196
202
  "build": "yarn clean && cross-env NODE_ENV=production rollup -c rollup.config.ts --configPlugin typescript && yarn dts",
@@ -1,111 +0,0 @@
1
- 'use strict';
2
-
3
- const SYMBOL_TABLE = {
4
- BACKQUOTE: '`',
5
- TILDE: '~',
6
- EXCLAM: '!',
7
- AT: '@',
8
- NUMBERSIGN: '#',
9
- DOLLAR: '$',
10
- PERCENT: '%',
11
- CARET: '^',
12
- AMPERSAND: '&',
13
- ASTERISK: '*',
14
- PARENLEFT: '(',
15
- PARENRIGHT: ')',
16
- MINUS: '-',
17
- UNDERSCORE: '_',
18
- EQUAL: '=',
19
- PLUS: '+',
20
- BRACKETLEFT: '[',
21
- BRACELEFT: '{',
22
- BRACKETRIGHT: ']',
23
- BRACERIGHT: '}',
24
- SEMICOLON: ';',
25
- COLON: ':',
26
- QUOTE: "'",
27
- DOUBLEQUOTE: '"',
28
- BACKSLASH: '\\',
29
- BAR: '|',
30
- COMMA: ',',
31
- LESS: '<',
32
- PERIOD: '.',
33
- GREATER: '>',
34
- SLASH: '/',
35
- QUESTION: '?',
36
- SPACE: ' ',
37
- DOT: '.',
38
- HASH: '#'
39
- };
40
- const MappingChars2String = {
41
- '[': '_bl_',
42
- ']': '_br_',
43
- '(': '_pl_',
44
- ')': '_qr_',
45
- '#': '_h_',
46
- '!': '_i_',
47
- '/': '_s_',
48
- '\\': '_bs_',
49
- '.': '_d_',
50
- ':': '_c_',
51
- '%': '_p_',
52
- ',': '_co_',
53
- "'": '_q_',
54
- '"': '_dq_',
55
- '*': '_a_',
56
- '&': '_am_',
57
- '@': '_at_',
58
- '{': '_bal_',
59
- '}': '_bar_',
60
- '+': '_plus_',
61
- ';': '_se_',
62
- '<': '_l_',
63
- '~': '_t_',
64
- '=': '_e_',
65
- '>': '_g_',
66
- '?': '_qu_',
67
- '^': '_ca_',
68
- '`': '_bq_',
69
- '|': '_b_',
70
- $: '_do_'
71
- };
72
- const MappingChars2StringEntries = Object.entries(MappingChars2String);
73
- const SimpleMappingChars2String = {
74
- '[': '_',
75
- ']': '_',
76
- '(': '_',
77
- ')': '_',
78
- '{': '_',
79
- '}': '_',
80
- '+': 'a',
81
- ',': 'b',
82
- ':': 'c',
83
- '.': 'd',
84
- '=': 'e',
85
- ';': 'f',
86
- '>': 'g',
87
- '#': 'h',
88
- '!': 'i',
89
- '@': 'j',
90
- '^': 'k',
91
- '<': 'l',
92
- '*': 'm',
93
- '&': 'n',
94
- '?': 'o',
95
- '%': 'p',
96
- "'": 'q',
97
- $: 'r',
98
- '/': 's',
99
- '~': 't',
100
- '|': 'u',
101
- '`': 'v',
102
- '\\': 'w',
103
- '"': 'x'
104
- };
105
- const SimpleMappingChars2StringEntries = Object.entries(SimpleMappingChars2String);
106
-
107
- exports.MappingChars2String = MappingChars2String;
108
- exports.MappingChars2StringEntries = MappingChars2StringEntries;
109
- exports.SYMBOL_TABLE = SYMBOL_TABLE;
110
- exports.SimpleMappingChars2String = SimpleMappingChars2String;
111
- exports.SimpleMappingChars2StringEntries = SimpleMappingChars2StringEntries;
@@ -1,105 +0,0 @@
1
- const SYMBOL_TABLE = {
2
- BACKQUOTE: '`',
3
- TILDE: '~',
4
- EXCLAM: '!',
5
- AT: '@',
6
- NUMBERSIGN: '#',
7
- DOLLAR: '$',
8
- PERCENT: '%',
9
- CARET: '^',
10
- AMPERSAND: '&',
11
- ASTERISK: '*',
12
- PARENLEFT: '(',
13
- PARENRIGHT: ')',
14
- MINUS: '-',
15
- UNDERSCORE: '_',
16
- EQUAL: '=',
17
- PLUS: '+',
18
- BRACKETLEFT: '[',
19
- BRACELEFT: '{',
20
- BRACKETRIGHT: ']',
21
- BRACERIGHT: '}',
22
- SEMICOLON: ';',
23
- COLON: ':',
24
- QUOTE: "'",
25
- DOUBLEQUOTE: '"',
26
- BACKSLASH: '\\',
27
- BAR: '|',
28
- COMMA: ',',
29
- LESS: '<',
30
- PERIOD: '.',
31
- GREATER: '>',
32
- SLASH: '/',
33
- QUESTION: '?',
34
- SPACE: ' ',
35
- DOT: '.',
36
- HASH: '#'
37
- };
38
- const MappingChars2String = {
39
- '[': '_bl_',
40
- ']': '_br_',
41
- '(': '_pl_',
42
- ')': '_qr_',
43
- '#': '_h_',
44
- '!': '_i_',
45
- '/': '_s_',
46
- '\\': '_bs_',
47
- '.': '_d_',
48
- ':': '_c_',
49
- '%': '_p_',
50
- ',': '_co_',
51
- "'": '_q_',
52
- '"': '_dq_',
53
- '*': '_a_',
54
- '&': '_am_',
55
- '@': '_at_',
56
- '{': '_bal_',
57
- '}': '_bar_',
58
- '+': '_plus_',
59
- ';': '_se_',
60
- '<': '_l_',
61
- '~': '_t_',
62
- '=': '_e_',
63
- '>': '_g_',
64
- '?': '_qu_',
65
- '^': '_ca_',
66
- '`': '_bq_',
67
- '|': '_b_',
68
- $: '_do_'
69
- };
70
- const MappingChars2StringEntries = Object.entries(MappingChars2String);
71
- const SimpleMappingChars2String = {
72
- '[': '_',
73
- ']': '_',
74
- '(': '_',
75
- ')': '_',
76
- '{': '_',
77
- '}': '_',
78
- '+': 'a',
79
- ',': 'b',
80
- ':': 'c',
81
- '.': 'd',
82
- '=': 'e',
83
- ';': 'f',
84
- '>': 'g',
85
- '#': 'h',
86
- '!': 'i',
87
- '@': 'j',
88
- '^': 'k',
89
- '<': 'l',
90
- '*': 'm',
91
- '&': 'n',
92
- '?': 'o',
93
- '%': 'p',
94
- "'": 'q',
95
- $: 'r',
96
- '/': 's',
97
- '~': 't',
98
- '|': 'u',
99
- '`': 'v',
100
- '\\': 'w',
101
- '"': 'x'
102
- };
103
- const SimpleMappingChars2StringEntries = Object.entries(SimpleMappingChars2String);
104
-
105
- export { MappingChars2String as M, SimpleMappingChars2String as S, SYMBOL_TABLE as a, MappingChars2StringEntries as b, SimpleMappingChars2StringEntries as c };
package/dist/dic.d.ts DELETED
@@ -1,44 +0,0 @@
1
- export declare const SYMBOL_TABLE: {
2
- readonly BACKQUOTE: "`";
3
- readonly TILDE: "~";
4
- readonly EXCLAM: "!";
5
- readonly AT: "@";
6
- readonly NUMBERSIGN: "#";
7
- readonly DOLLAR: "$";
8
- readonly PERCENT: "%";
9
- readonly CARET: "^";
10
- readonly AMPERSAND: "&";
11
- readonly ASTERISK: "*";
12
- readonly PARENLEFT: "(";
13
- readonly PARENRIGHT: ")";
14
- readonly MINUS: "-";
15
- readonly UNDERSCORE: "_";
16
- readonly EQUAL: "=";
17
- readonly PLUS: "+";
18
- readonly BRACKETLEFT: "[";
19
- readonly BRACELEFT: "{";
20
- readonly BRACKETRIGHT: "]";
21
- readonly BRACERIGHT: "}";
22
- readonly SEMICOLON: ";";
23
- readonly COLON: ":";
24
- readonly QUOTE: "'";
25
- readonly DOUBLEQUOTE: "\"";
26
- readonly BACKSLASH: "\\";
27
- readonly BAR: "|";
28
- readonly COMMA: ",";
29
- readonly LESS: "<";
30
- readonly PERIOD: ".";
31
- readonly GREATER: ">";
32
- readonly SLASH: "/";
33
- readonly QUESTION: "?";
34
- readonly SPACE: " ";
35
- readonly DOT: ".";
36
- readonly HASH: "#";
37
- };
38
- export type SYMBOL_TABLE_TYPE = typeof SYMBOL_TABLE;
39
- export type SYMBOL_TABLE_TYPE_VALUES = SYMBOL_TABLE_TYPE[keyof SYMBOL_TABLE_TYPE];
40
- export type MappingStringDictionary = Record<Exclude<SYMBOL_TABLE_TYPE_VALUES, '-' | '_' | ' '>, string>;
41
- export declare const MappingChars2String: MappingStringDictionary;
42
- export declare const MappingChars2StringEntries: [string, string][];
43
- export declare const SimpleMappingChars2String: MappingStringDictionary;
44
- export declare const SimpleMappingChars2StringEntries: [string, string][];