hoci 0.3.0 → 0.4.2

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/index.cjs CHANGED
@@ -1,13 +1,16 @@
1
1
  'use strict';
2
2
 
3
- const core = require('@hoci/core');
4
- const components = require('@hoci/components');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
5
4
 
5
+ const components = require('@hoci/components');
6
+ const core = require('@hoci/core');
6
7
 
8
+ const index = { install: components.install };
7
9
 
8
- Object.keys(core).forEach(function (k) {
9
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = core[k];
10
- });
10
+ exports.default = index;
11
11
  Object.keys(components).forEach(function (k) {
12
12
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = components[k];
13
13
  });
14
+ Object.keys(core).forEach(function (k) {
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = core[k];
16
+ });
package/dist/index.d.cts CHANGED
@@ -1,2 +1,9 @@
1
+ import * as vue from 'vue';
1
2
  export * from '@hoci/core';
2
3
  export * from '@hoci/components';
4
+
5
+ declare const _default: {
6
+ install: (app: vue.App<any>) => void;
7
+ };
8
+
9
+ export { _default as default };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,9 @@
1
+ import * as vue from 'vue';
1
2
  export * from '@hoci/core';
2
3
  export * from '@hoci/components';
4
+
5
+ declare const _default: {
6
+ install: (app: vue.App<any>) => void;
7
+ };
8
+
9
+ export { _default as default };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,9 @@
1
+ import * as vue from 'vue';
1
2
  export * from '@hoci/core';
2
3
  export * from '@hoci/components';
4
+
5
+ declare const _default: {
6
+ install: (app: vue.App<any>) => void;
7
+ };
8
+
9
+ export { _default as default };
package/dist/index.mjs CHANGED
@@ -1,2 +1,7 @@
1
- export * from '@hoci/core';
1
+ import { install } from '@hoci/components';
2
2
  export * from '@hoci/components';
3
+ export * from '@hoci/core';
4
+
5
+ const index = { install };
6
+
7
+ export { index as default };
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function HociResolver() {
6
+ return {
7
+ type: "component",
8
+ resolve: (name) => {
9
+ if (name.match(/^(Hi[A-Z]|hi-[a-z])/)) {
10
+ return {
11
+ name,
12
+ from: "hoci"
13
+ };
14
+ }
15
+ }
16
+ };
17
+ }
18
+
19
+ exports.HociResolver = HociResolver;
20
+ exports.default = HociResolver;
@@ -0,0 +1,5 @@
1
+ import { ComponentResolver } from 'unplugin-vue-components';
2
+
3
+ declare function HociResolver(): ComponentResolver;
4
+
5
+ export { HociResolver, HociResolver as default };
@@ -0,0 +1,5 @@
1
+ import { ComponentResolver } from 'unplugin-vue-components';
2
+
3
+ declare function HociResolver(): ComponentResolver;
4
+
5
+ export { HociResolver, HociResolver as default };
@@ -0,0 +1,5 @@
1
+ import { ComponentResolver } from 'unplugin-vue-components';
2
+
3
+ declare function HociResolver(): ComponentResolver;
4
+
5
+ export { HociResolver, HociResolver as default };
@@ -0,0 +1,15 @@
1
+ function HociResolver() {
2
+ return {
3
+ type: "component",
4
+ resolve: (name) => {
5
+ if (name.match(/^(Hi[A-Z]|hi-[a-z])/)) {
6
+ return {
7
+ name,
8
+ from: "hoci"
9
+ };
10
+ }
11
+ }
12
+ };
13
+ }
14
+
15
+ export { HociResolver, HociResolver as default };
package/package.json CHANGED
@@ -1,14 +1,20 @@
1
1
  {
2
2
  "name": "hoci",
3
- "version": "0.3.0",
3
+ "version": "0.4.2",
4
4
  "description": "",
5
5
  "author": "chizuki",
6
6
  "license": "MIT",
7
7
  "exports": {
8
8
  ".": {
9
+ "types": "./dist/index.d.ts",
9
10
  "require": "./dist/index.cjs",
10
11
  "import": "./dist/index.mjs"
11
12
  },
13
+ "./resolver": {
14
+ "types": "./dist/resolver.d.ts",
15
+ "require": "./dist/resolver.cjs",
16
+ "import": "./dist/resolver.mjs"
17
+ },
12
18
  "./*": "./dist/*"
13
19
  },
14
20
  "main": "dist/index.cjs",
@@ -17,9 +23,12 @@
17
23
  "files": [
18
24
  "dist/"
19
25
  ],
26
+ "peerDependencies": {
27
+ "unplugin-vue-components": "^0.25.2"
28
+ },
20
29
  "dependencies": {
21
- "@hoci/components": "0.3.0",
22
- "@hoci/core": "0.3.0"
30
+ "@hoci/core": "0.4.2",
31
+ "@hoci/components": "0.4.2"
23
32
  },
24
33
  "scripts": {
25
34
  "build": "unbuild",