@shuvi/utils 0.0.1-rc.34 → 0.0.1-rc.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/utils",
3
- "version": "0.0.1-rc.34",
3
+ "version": "0.0.1-rc.35",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -8,7 +8,6 @@
8
8
  },
9
9
  "author": "liximomo",
10
10
  "license": "MIT",
11
- "main": "lib/index.js",
12
11
  "files": [
13
12
  "lib"
14
13
  ],
@@ -34,5 +33,5 @@
34
33
  "@types/debug": "^4.1.5",
35
34
  "@types/resolve": "^1.14.0"
36
35
  },
37
- "gitHead": "10ebaa2a20fd06bc7f34be0feeddef9a26f9dddd"
36
+ "gitHead": "99f4596f0c28cd14df217ac655e07e0304460eaa"
38
37
  }
package/lib/index.d.ts DELETED
@@ -1,14 +0,0 @@
1
- export { default as NOOP } from './noopFn';
2
- export * from './defer';
3
- export declare const EMPTY_OBJ: {};
4
- export declare const extend: {
5
- <T, U>(target: T, source: U): T & U;
6
- <T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
7
- <T_2, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
8
- (target: object, ...sources: any[]): any;
9
- };
10
- export declare const isArray: (arg: any) => arg is any[];
11
- export declare const isObject: (val: unknown) => val is Record<any, any>;
12
- export declare const isFunction: (val: unknown) => val is Function;
13
- export declare const hasOwn: (val: object, key: string | symbol) => key is never;
14
- export declare function getType(obj: any): string;
package/lib/index.js DELETED
@@ -1,26 +0,0 @@
1
- "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var noopFn_1 = require("./noopFn");
7
- exports.NOOP = noopFn_1.default;
8
- __export(require("./defer"));
9
- const hasOwnProperty = Object.prototype.hasOwnProperty;
10
- const toString = Object.prototype.toString;
11
- exports.EMPTY_OBJ = {};
12
- exports.extend = Object.assign;
13
- exports.isArray = Array.isArray;
14
- exports.isObject = (val) => val !== null && typeof val === 'object';
15
- exports.isFunction = (val) => typeof val === 'function';
16
- exports.hasOwn = (val, key) => hasOwnProperty.call(val, key);
17
- const objectRegExp = /^\[object (\S+)\]$/;
18
- function getType(obj) {
19
- var type = typeof obj;
20
- if (type !== 'object') {
21
- return type;
22
- }
23
- // inspect [[Class]] for objects
24
- return toString.call(obj).replace(objectRegExp, '$1');
25
- }
26
- exports.getType = getType;
package/lib/nullish.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: null;
2
- export default _default;
package/lib/nullish.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = null;