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 +8 -5
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.mjs +6 -1
- package/dist/resolver.cjs +20 -0
- package/dist/resolver.d.cts +5 -0
- package/dist/resolver.d.mts +5 -0
- package/dist/resolver.d.ts +5 -0
- package/dist/resolver.mjs +15 -0
- package/package.json +12 -3
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
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
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hoci",
|
|
3
|
-
"version": "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/
|
|
22
|
-
"@hoci/
|
|
30
|
+
"@hoci/core": "0.4.2",
|
|
31
|
+
"@hoci/components": "0.4.2"
|
|
23
32
|
},
|
|
24
33
|
"scripts": {
|
|
25
34
|
"build": "unbuild",
|