@fangzhongya/vue-components 0.1.2-1 → 0.1.2-3

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.
package/dist/archive.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOZQUVTS5cjs = require('./chunk-OZQUVTS5.cjs');
3
+ var _chunk4RBBEA7Zcjs = require('./chunk-4RBBEA7Z.cjs');
4
4
 
5
5
 
6
6
  var _chunkPUE2ULUAcjs = require('./chunk-PUE2ULUA.cjs');
7
7
 
8
8
 
9
- var _chunkBC2X3HRIcjs = require('./chunk-BC2X3HRI.cjs');
9
+ var _chunkZO3KTUNKcjs = require('./chunk-ZO3KTUNK.cjs');
10
10
 
11
11
  // packages/archive.ts
12
12
  var _fs = require('fs');
@@ -38,14 +38,14 @@ function setJson(obj) {
38
38
  }
39
39
  }
40
40
  function ComponentsResolverArchive(config2 = {}) {
41
- const configs = _chunkBC2X3HRIcjs.unmergeObject.call(void 0,
41
+ const configs = _chunkZO3KTUNKcjs.unmergeObject.call(void 0,
42
42
  _chunkPUE2ULUAcjs.config,
43
43
  archiveConfig,
44
44
  2,
45
45
  true
46
46
  );
47
- const fangComp = new (0, _chunkOZQUVTS5cjs.component_default)(
48
- _chunkBC2X3HRIcjs.unmergeObject.call(void 0, configs, config2, 1)
47
+ const fangComp = new (0, _chunk4RBBEA7Zcjs.component_default)(
48
+ _chunkZO3KTUNKcjs.unmergeObject.call(void 0, configs, config2, 1)
49
49
  );
50
50
  setJson(fangComp.config);
51
51
  return [
package/dist/archive.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  component_default
3
- } from "./chunk-KTUWQ7R6.js";
3
+ } from "./chunk-G6YWLTEU.js";
4
4
  import {
5
5
  config
6
6
  } from "./chunk-SN4SJVXW.js";
7
7
  import {
8
8
  unmergeObject
9
- } from "./chunk-74SEIKDL.js";
9
+ } from "./chunk-FDVNT7FU.js";
10
10
 
11
11
  // packages/archive.ts
12
12
  import { writeFile } from "node:fs";
@@ -3,14 +3,11 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkBC2X3HRIcjs = require('./chunk-BC2X3HRI.cjs');
6
+ var _chunkZO3KTUNKcjs = require('./chunk-ZO3KTUNK.cjs');
7
7
 
8
8
  // packages/component.ts
9
9
  var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);
10
10
  var _path = require('path');
11
- function getNmaeBar(name) {
12
- return _chunkBC2X3HRIcjs.humpToLine.call(void 0, name);
13
- }
14
11
  function getMatchDir(name) {
15
12
  return [name + ".js"];
16
13
  }
@@ -55,9 +52,6 @@ function getForUrlStart(arr, name) {
55
52
  }
56
53
  }
57
54
  }
58
- function getName(name) {
59
- return _chunkBC2X3HRIcjs.getComponentNames.call(void 0, name);
60
- }
61
55
  var FangComponent = class {
62
56
 
63
57
  #comUrls;
@@ -183,7 +177,7 @@ var FangComponent = class {
183
177
  cach[type] = co;
184
178
  }
185
179
  #namefilter(name) {
186
- name = getNmaeBar(name);
180
+ name = _chunkZO3KTUNKcjs.humpToLine.call(void 0, name);
187
181
  if (this.config.startss) {
188
182
  for (let index = 0; index < this.config.startss.length; index++) {
189
183
  const element = this.config.startss[index] + "-";
@@ -230,7 +224,7 @@ var FangComponent = class {
230
224
  } else if (as.length > 1) {
231
225
  let m;
232
226
  if (/[A-Z]/.test(yname.slice(0, 1))) {
233
- m = yname.replace(_chunkBC2X3HRIcjs.firstUpper.call(void 0, top), "");
227
+ m = yname.replace(_chunkZO3KTUNKcjs.firstUpper.call(void 0, top), "");
234
228
  } else {
235
229
  m = yname.replace(top, "");
236
230
  }
@@ -253,7 +247,7 @@ var FangComponent = class {
253
247
  }
254
248
  }
255
249
  #setNameFrom(name, type) {
256
- let mb = getNmaeBar(name);
250
+ let mb = _chunkZO3KTUNKcjs.humpToLine.call(void 0, name);
257
251
  const alias = this.config.alias;
258
252
  if (alias) {
259
253
  if (mb.startsWith(alias + "-")) {
@@ -261,7 +255,7 @@ var FangComponent = class {
261
255
  mb = mb.replace(reg, "");
262
256
  const reg1 = new RegExp("^" + alias);
263
257
  const reg2 = new RegExp(
264
- "^" + _chunkBC2X3HRIcjs.firstUpper.call(void 0, alias)
258
+ "^" + _chunkZO3KTUNKcjs.firstUpper.call(void 0, alias)
265
259
  );
266
260
  if (reg1.test(name)) {
267
261
  name = name.replace(reg1, "");
@@ -307,7 +301,7 @@ var FangComponent = class {
307
301
  }
308
302
  }
309
303
  #setMatchUrls(name, type) {
310
- const arr = getName(name);
304
+ const arr = _chunkZO3KTUNKcjs.getComponentNames.call(void 0, name);
311
305
  const urls = [];
312
306
  if (type == "directive") {
313
307
  arr.forEach((v) => {
@@ -411,40 +405,40 @@ var FangComponent = class {
411
405
  };
412
406
  const arr = [];
413
407
  arr.push(
414
- _chunkBC2X3HRIcjs.styleLog.call(void 0, "[@fangzhongya/vue-components]", {
408
+ _chunkZO3KTUNKcjs.styleLog.call(void 0, "[@fangzhongya/vue-components]", {
415
409
  text: 3
416
410
  })
417
411
  );
418
412
  if (obj) {
419
- let sfrom = _chunkBC2X3HRIcjs.styleLog.call(void 0, _optionalChain([obj, 'optionalAccess', _15 => _15.from]), {
413
+ let sfrom = _chunkZO3KTUNKcjs.styleLog.call(void 0, _optionalChain([obj, 'optionalAccess', _15 => _15.from]), {
420
414
  text: 4,
421
415
  revert: true
422
416
  });
423
417
  arr.push(
424
- _chunkBC2X3HRIcjs.styleLog.call(void 0, type, {
418
+ _chunkZO3KTUNKcjs.styleLog.call(void 0, type, {
425
419
  text: texts[type]
426
420
  })
427
421
  );
428
422
  arr.push(
429
- _chunkBC2X3HRIcjs.styleLog.call(void 0, name, {
423
+ _chunkZO3KTUNKcjs.styleLog.call(void 0, name, {
430
424
  bold: true
431
425
  })
432
426
  );
433
427
  if (!is) {
434
- sfrom = _chunkBC2X3HRIcjs.styleLog.call(void 0, "+", {
428
+ sfrom = _chunkZO3KTUNKcjs.styleLog.call(void 0, "+", {
435
429
  text: 2
436
430
  }) + sfrom;
437
431
  }
438
432
  arr.push(sfrom);
439
433
  } else {
440
434
  arr.push(
441
- _chunkBC2X3HRIcjs.styleLog.call(void 0, type, {
435
+ _chunkZO3KTUNKcjs.styleLog.call(void 0, type, {
442
436
  text: texts[type],
443
437
  lineThrough: true
444
438
  })
445
439
  );
446
440
  arr.push(
447
- _chunkBC2X3HRIcjs.styleLog.call(void 0, name, {
441
+ _chunkZO3KTUNKcjs.styleLog.call(void 0, name, {
448
442
  bold: true
449
443
  })
450
444
  );
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOZQUVTS5cjs = require('./chunk-OZQUVTS5.cjs');
3
+ var _chunk4RBBEA7Zcjs = require('./chunk-4RBBEA7Z.cjs');
4
4
 
5
5
 
6
6
  var _chunkPUE2ULUAcjs = require('./chunk-PUE2ULUA.cjs');
7
7
 
8
8
 
9
- var _chunkBC2X3HRIcjs = require('./chunk-BC2X3HRI.cjs');
9
+ var _chunkZO3KTUNKcjs = require('./chunk-ZO3KTUNK.cjs');
10
10
 
11
11
  // packages/resolver.ts
12
12
  function ComponentsResolver(config2 = {}) {
13
- const configs = _chunkBC2X3HRIcjs.unmergeObject.call(void 0, _chunkPUE2ULUAcjs.config, config2, 1);
14
- const fangComp = new (0, _chunkOZQUVTS5cjs.component_default)(configs);
13
+ const configs = _chunkZO3KTUNKcjs.unmergeObject.call(void 0, _chunkPUE2ULUAcjs.config, config2, 1);
14
+ const fangComp = new (0, _chunk4RBBEA7Zcjs.component_default)(configs);
15
15
  return [
16
16
  {
17
17
  type: "component",
@@ -1,4 +1,4 @@
1
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
1
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
2
2
  function styleLog(msg = "", obj) {
3
3
  const arr = ["\x1B[0m"];
4
4
  if (obj?.revert) {
@@ -28,7 +28,7 @@ function styleLog(msg = "", obj) {
28
28
  return arr.join("");
29
29
  }
30
30
 
31
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
31
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
32
32
  function unmergeObject(a, b, j = 0, i) {
33
33
  let c;
34
34
  if (a instanceof Array) {
@@ -74,12 +74,34 @@ function unmergeObject(a, b, j = 0, i) {
74
74
  return c;
75
75
  }
76
76
 
77
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
77
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
78
+ function humpToLine(name) {
79
+ const reg = /(([A-Z])([^A-Z]*))/g;
80
+ let result;
81
+ const arr = [];
82
+ let i = 0;
83
+ while ((result = reg.exec(name)) !== null) {
84
+ if (i == 0 && result.index != 0) {
85
+ arr.push(name.substring(0, result.index));
86
+ }
87
+ i++;
88
+ arr.push(result[1].toLowerCase());
89
+ }
90
+ if (arr.length == 0) {
91
+ return name;
92
+ } else {
93
+ let a = arr.join("-");
94
+ a = a.replace(/[-]{2,}/g, "-");
95
+ return a;
96
+ }
97
+ }
98
+
99
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
78
100
  function firstLower(str) {
79
101
  return str.slice(0, 1).toLowerCase() + str.slice(1);
80
102
  }
81
103
 
82
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-2PY55D6T.js
104
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-2PY55D6T.js
83
105
  function lineToLargeHump(name) {
84
106
  let arr = name.split("-");
85
107
  arr = arr.map((vs) => {
@@ -88,12 +110,12 @@ function lineToLargeHump(name) {
88
110
  return arr.join("");
89
111
  }
90
112
 
91
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
113
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
92
114
  function firstUpper(str) {
93
115
  return str.slice(0, 1).toUpperCase() + str.slice(1);
94
116
  }
95
117
 
96
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-O3RJ5M35.js
118
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-O3RJ5M35.js
97
119
  function lineToSmallHump(name) {
98
120
  let arr = name.split("-");
99
121
  arr = arr.map((vs) => {
@@ -102,29 +124,7 @@ function lineToSmallHump(name) {
102
124
  return firstUpper(arr.join(""));
103
125
  }
104
126
 
105
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
106
- function humpToLine(name) {
107
- const reg = /(([A-Z])([^A-Z]*))/g;
108
- let result;
109
- const arr = [];
110
- let i = 0;
111
- while ((result = reg.exec(name)) !== null) {
112
- if (i == 0 && result.index != 0) {
113
- arr.push(name.substring(0, result.index));
114
- }
115
- i++;
116
- arr.push(result[1].toLowerCase());
117
- }
118
- if (arr.length == 0) {
119
- return name;
120
- } else {
121
- let a = arr.join("-");
122
- a = a.replace(/[-]{2,}/g, "-");
123
- return a;
124
- }
125
- }
126
-
127
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-YHBKZTYZ.js
127
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-FESWCW7T.js
128
128
  function getComponentNames(name) {
129
129
  if (name.includes("-")) {
130
130
  const line = humpToLine(name);
@@ -152,7 +152,7 @@ function getComponentNames(name) {
152
152
  export {
153
153
  styleLog,
154
154
  unmergeObject,
155
- firstUpper,
156
155
  humpToLine,
156
+ firstUpper,
157
157
  getComponentNames
158
158
  };
@@ -3,14 +3,11 @@ import {
3
3
  getComponentNames,
4
4
  humpToLine,
5
5
  styleLog
6
- } from "./chunk-74SEIKDL.js";
6
+ } from "./chunk-FDVNT7FU.js";
7
7
 
8
8
  // packages/component.ts
9
9
  import fastGlob from "fast-glob";
10
10
  import { resolve } from "path";
11
- function getNmaeBar(name) {
12
- return humpToLine(name);
13
- }
14
11
  function getMatchDir(name) {
15
12
  return [name + ".js"];
16
13
  }
@@ -55,9 +52,6 @@ function getForUrlStart(arr, name) {
55
52
  }
56
53
  }
57
54
  }
58
- function getName(name) {
59
- return getComponentNames(name);
60
- }
61
55
  var FangComponent = class {
62
56
  config;
63
57
  #comUrls;
@@ -183,7 +177,7 @@ var FangComponent = class {
183
177
  cach[type] = co;
184
178
  }
185
179
  #namefilter(name) {
186
- name = getNmaeBar(name);
180
+ name = humpToLine(name);
187
181
  if (this.config.startss) {
188
182
  for (let index = 0; index < this.config.startss.length; index++) {
189
183
  const element = this.config.startss[index] + "-";
@@ -253,7 +247,7 @@ var FangComponent = class {
253
247
  }
254
248
  }
255
249
  #setNameFrom(name, type) {
256
- let mb = getNmaeBar(name);
250
+ let mb = humpToLine(name);
257
251
  const alias = this.config.alias;
258
252
  if (alias) {
259
253
  if (mb.startsWith(alias + "-")) {
@@ -307,7 +301,7 @@ var FangComponent = class {
307
301
  }
308
302
  }
309
303
  #setMatchUrls(name, type) {
310
- const arr = getName(name);
304
+ const arr = getComponentNames(name);
311
305
  const urls = [];
312
306
  if (type == "directive") {
313
307
  arr.forEach((v) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  component_default
3
- } from "./chunk-KTUWQ7R6.js";
3
+ } from "./chunk-G6YWLTEU.js";
4
4
  import {
5
5
  config
6
6
  } from "./chunk-SN4SJVXW.js";
7
7
  import {
8
8
  unmergeObject
9
- } from "./chunk-74SEIKDL.js";
9
+ } from "./chunk-FDVNT7FU.js";
10
10
 
11
11
  // packages/resolver.ts
12
12
  function ComponentsResolver(config2 = {}) {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
2
2
  function styleLog(msg = "", obj) {
3
3
  const arr = ["\x1B[0m"];
4
4
  if (_optionalChain([obj, 'optionalAccess', _ => _.revert])) {
@@ -28,7 +28,7 @@ function styleLog(msg = "", obj) {
28
28
  return arr.join("");
29
29
  }
30
30
 
31
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
31
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
32
32
  function unmergeObject(a, b, j = 0, i) {
33
33
  let c;
34
34
  if (a instanceof Array) {
@@ -74,12 +74,34 @@ function unmergeObject(a, b, j = 0, i) {
74
74
  return c;
75
75
  }
76
76
 
77
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
77
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
78
+ function humpToLine(name) {
79
+ const reg = /(([A-Z])([^A-Z]*))/g;
80
+ let result;
81
+ const arr = [];
82
+ let i = 0;
83
+ while ((result = reg.exec(name)) !== null) {
84
+ if (i == 0 && result.index != 0) {
85
+ arr.push(name.substring(0, result.index));
86
+ }
87
+ i++;
88
+ arr.push(result[1].toLowerCase());
89
+ }
90
+ if (arr.length == 0) {
91
+ return name;
92
+ } else {
93
+ let a = arr.join("-");
94
+ a = a.replace(/[-]{2,}/g, "-");
95
+ return a;
96
+ }
97
+ }
98
+
99
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
78
100
  function firstLower(str) {
79
101
  return str.slice(0, 1).toLowerCase() + str.slice(1);
80
102
  }
81
103
 
82
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-2PY55D6T.js
104
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-2PY55D6T.js
83
105
  function lineToLargeHump(name) {
84
106
  let arr = name.split("-");
85
107
  arr = arr.map((vs) => {
@@ -88,12 +110,12 @@ function lineToLargeHump(name) {
88
110
  return arr.join("");
89
111
  }
90
112
 
91
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
113
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
92
114
  function firstUpper(str) {
93
115
  return str.slice(0, 1).toUpperCase() + str.slice(1);
94
116
  }
95
117
 
96
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-O3RJ5M35.js
118
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-O3RJ5M35.js
97
119
  function lineToSmallHump(name) {
98
120
  let arr = name.split("-");
99
121
  arr = arr.map((vs) => {
@@ -102,29 +124,7 @@ function lineToSmallHump(name) {
102
124
  return firstUpper(arr.join(""));
103
125
  }
104
126
 
105
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
106
- function humpToLine(name) {
107
- const reg = /(([A-Z])([^A-Z]*))/g;
108
- let result;
109
- const arr = [];
110
- let i = 0;
111
- while ((result = reg.exec(name)) !== null) {
112
- if (i == 0 && result.index != 0) {
113
- arr.push(name.substring(0, result.index));
114
- }
115
- i++;
116
- arr.push(result[1].toLowerCase());
117
- }
118
- if (arr.length == 0) {
119
- return name;
120
- } else {
121
- let a = arr.join("-");
122
- a = a.replace(/[-]{2,}/g, "-");
123
- return a;
124
- }
125
- }
126
-
127
- // node_modules/.pnpm/@fangzhongya+utils@0.0.6-1/node_modules/@fangzhongya/utils/dist/chunk-YHBKZTYZ.js
127
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.6-11/node_modules/@fangzhongya/utils/dist/chunk-FESWCW7T.js
128
128
  function getComponentNames(name) {
129
129
  if (name.includes("-")) {
130
130
  const line = humpToLine(name);
@@ -155,4 +155,4 @@ function getComponentNames(name) {
155
155
 
156
156
 
157
157
 
158
- exports.styleLog = styleLog; exports.unmergeObject = unmergeObject; exports.firstUpper = firstUpper; exports.humpToLine = humpToLine; exports.getComponentNames = getComponentNames;
158
+ exports.styleLog = styleLog; exports.unmergeObject = unmergeObject; exports.humpToLine = humpToLine; exports.firstUpper = firstUpper; exports.getComponentNames = getComponentNames;
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOZQUVTS5cjs = require('./chunk-OZQUVTS5.cjs');
4
- require('./chunk-BC2X3HRI.cjs');
3
+ var _chunk4RBBEA7Zcjs = require('./chunk-4RBBEA7Z.cjs');
4
+ require('./chunk-ZO3KTUNK.cjs');
5
5
 
6
6
 
7
- exports.default = _chunkOZQUVTS5cjs.component_default;
7
+ exports.default = _chunk4RBBEA7Zcjs.component_default;
package/dist/component.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  component_default
3
- } from "./chunk-KTUWQ7R6.js";
4
- import "./chunk-74SEIKDL.js";
3
+ } from "./chunk-G6YWLTEU.js";
4
+ import "./chunk-FDVNT7FU.js";
5
5
  export {
6
6
  component_default as default
7
7
  };
package/dist/index.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBLHJIMR2cjs = require('./chunk-BLHJIMR2.cjs');
3
+ var _chunkCZALKJ3Lcjs = require('./chunk-CZALKJ3L.cjs');
4
4
 
5
5
 
6
- var _chunkOZQUVTS5cjs = require('./chunk-OZQUVTS5.cjs');
6
+ var _chunk4RBBEA7Zcjs = require('./chunk-4RBBEA7Z.cjs');
7
7
  require('./chunk-PUE2ULUA.cjs');
8
- require('./chunk-BC2X3HRI.cjs');
8
+ require('./chunk-ZO3KTUNK.cjs');
9
9
 
10
10
  // packages/index.ts
11
- var FangComponent = class extends _chunkOZQUVTS5cjs.component_default {
11
+ var FangComponent = class extends _chunk4RBBEA7Zcjs.component_default {
12
12
  };
13
13
 
14
14
 
15
15
 
16
- exports.ComponentsResolver = _chunkBLHJIMR2cjs.ComponentsResolver; exports.FangComponent = FangComponent;
16
+ exports.ComponentsResolver = _chunkCZALKJ3Lcjs.ComponentsResolver; exports.FangComponent = FangComponent;
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ComponentsResolver
3
- } from "./chunk-XAEJQ2ZS.js";
3
+ } from "./chunk-RQGSI7XJ.js";
4
4
  import {
5
5
  component_default
6
- } from "./chunk-KTUWQ7R6.js";
6
+ } from "./chunk-G6YWLTEU.js";
7
7
  import "./chunk-SN4SJVXW.js";
8
- import "./chunk-74SEIKDL.js";
8
+ import "./chunk-FDVNT7FU.js";
9
9
 
10
10
  // packages/index.ts
11
11
  var FangComponent = class extends component_default {
package/dist/resolver.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBLHJIMR2cjs = require('./chunk-BLHJIMR2.cjs');
4
- require('./chunk-OZQUVTS5.cjs');
3
+ var _chunkCZALKJ3Lcjs = require('./chunk-CZALKJ3L.cjs');
4
+ require('./chunk-4RBBEA7Z.cjs');
5
5
  require('./chunk-PUE2ULUA.cjs');
6
- require('./chunk-BC2X3HRI.cjs');
6
+ require('./chunk-ZO3KTUNK.cjs');
7
7
 
8
8
 
9
- exports.ComponentsResolver = _chunkBLHJIMR2cjs.ComponentsResolver;
9
+ exports.ComponentsResolver = _chunkCZALKJ3Lcjs.ComponentsResolver;
package/dist/resolver.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ComponentsResolver
3
- } from "./chunk-XAEJQ2ZS.js";
4
- import "./chunk-KTUWQ7R6.js";
3
+ } from "./chunk-RQGSI7XJ.js";
4
+ import "./chunk-G6YWLTEU.js";
5
5
  import "./chunk-SN4SJVXW.js";
6
- import "./chunk-74SEIKDL.js";
6
+ import "./chunk-FDVNT7FU.js";
7
7
  export {
8
8
  ComponentsResolver
9
9
  };
package/dist/util.cjs CHANGED
@@ -4,11 +4,11 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkBC2X3HRIcjs = require('./chunk-BC2X3HRI.cjs');
7
+ var _chunkZO3KTUNKcjs = require('./chunk-ZO3KTUNK.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.firstUpper = _chunkBC2X3HRIcjs.firstUpper; exports.getComponentNames = _chunkBC2X3HRIcjs.getComponentNames; exports.humpToLine = _chunkBC2X3HRIcjs.humpToLine; exports.styleLog = _chunkBC2X3HRIcjs.styleLog; exports.unmergeObject = _chunkBC2X3HRIcjs.unmergeObject;
14
+ exports.firstUpper = _chunkZO3KTUNKcjs.firstUpper; exports.getComponentNames = _chunkZO3KTUNKcjs.getComponentNames; exports.humpToLine = _chunkZO3KTUNKcjs.humpToLine; exports.styleLog = _chunkZO3KTUNKcjs.styleLog; exports.unmergeObject = _chunkZO3KTUNKcjs.unmergeObject;
package/dist/util.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  humpToLine,
5
5
  styleLog,
6
6
  unmergeObject
7
- } from "./chunk-74SEIKDL.js";
7
+ } from "./chunk-FDVNT7FU.js";
8
8
  export {
9
9
  firstUpper,
10
10
  getComponentNames,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fangzhongya/vue-components",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.1.2-1",
5
+ "version": "0.1.2-3",
6
6
  "description ": "unplugin-vue-components插件",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",
@@ -19,12 +19,13 @@
19
19
  },
20
20
  "scripts": {
21
21
  "dev": "ts-node node.index.ts",
22
+ "dev:tests": "ts-node node.tests.ts",
22
23
  "build": "tsup",
23
24
  "test": "vitest test"
24
25
  },
25
26
  "devDependencies": {
26
- "@fangzhongya/create": "^0.1.9",
27
- "@fangzhongya/utils": "0.0.6-1",
27
+ "@fangzhongya/create": "0.2.0-6",
28
+ "@fangzhongya/utils": "0.0.6-11",
28
29
  "@types/node": "^18.11.19",
29
30
  "tsup": "^6.5.0",
30
31
  "typescript": "^4.9.5",
@@ -77,6 +78,11 @@
77
78
  "require": "./dist/util.cjs",
78
79
  "import": "./dist/util.js",
79
80
  "types": "./dist/util.d.ts"
81
+ },
82
+ "./index": {
83
+ "require": "./dist/index.cjs",
84
+ "import": "./dist/index.js",
85
+ "types": "./dist/index.d.ts"
80
86
  }
81
87
  }
82
- }
88
+ }