@hairy/utils 0.6.0 → 0.6.1

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.
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
- // index.ts
31
- var util_core_exports = {};
32
- __export(util_core_exports, {
30
+ // src/index.ts
31
+ var src_exports = {};
32
+ __export(src_exports, {
33
33
  UA: () => UA,
34
34
  arange: () => arange,
35
35
  atWillToSize: () => atWillToSize,
@@ -60,7 +60,7 @@ __export(util_core_exports, {
60
60
  pipe: () => pipe,
61
61
  weexPlatform: () => weexPlatform
62
62
  });
63
- module.exports = __toCommonJS(util_core_exports);
63
+ module.exports = __toCommonJS(src_exports);
64
64
 
65
65
  // src/is/index.ts
66
66
  var isBrowser = typeof window !== "undefined";
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "@hairy/utils",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "license": "MIT",
5
- "main": "index.cjs.js",
5
+ "main": "./dist/index.cjs.js",
6
+ "publishConfig": {
7
+ "jsdelivr": "./dist/index.iife.min.js"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
6
12
  "dependencies": {
7
13
  "@extra-array/arange": "^1.1.7",
8
14
  "delay": "^5.0.0",
@@ -13,19 +19,17 @@
13
19
  "devDependencies": {
14
20
  "@types/lodash": "^4"
15
21
  },
16
- "types": "./index.d.ts",
17
- "module": "./index.esm.js",
18
- "unpkg": "./index.iife.min.js",
19
- "jsdelivr": "./index.iife.min.js",
22
+ "scripts": {
23
+ "build": "ptsup src/index.ts --dts"
24
+ },
25
+ "types": "./dist/index.d.ts",
26
+ "module": "./dist/index.esm.js",
27
+ "unpkg": "./dist/index.iife.min.js",
20
28
  "exports": {
21
29
  ".": {
22
- "import": "./index.esm.js",
23
- "require": "./index.cjs.js"
30
+ "import": "./dist/index.esm.js",
31
+ "require": "./dist/index.cjs.js"
24
32
  },
25
33
  "./*": "./*"
26
- },
27
- "linkDirectory": false,
28
- "scripts": {
29
- "build": "ptsup index.ts --dts --meta"
30
34
  }
31
35
  }
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from './is'
2
+ export * from './lang'
3
+ export * from './size'
4
+ export * from './typeof'
5
+ export * from './typings'
6
+ export * from './util'
package/CHANGELOG.md DELETED
@@ -1,19 +0,0 @@
1
- # @hairy/utils
2
-
3
- ## 0.3.0
4
-
5
- ### Minor Changes
6
-
7
- - remove pickByParams function
8
-
9
- ## 0.2.0
10
-
11
- ### Minor Changes
12
-
13
- - fix dist not being packaged
14
-
15
- ## 0.1.0
16
-
17
- ### Minor Changes
18
-
19
- - f1a05f4: hairy v2 public package publish all
File without changes
File without changes