iota-utools 0.0.2 → 0.0.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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "iota-utools",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
- "main": "./lib//bundle.esm.js",
5
+ "main": "./lib/index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "build": "rollup -c",
package/public/index.html CHANGED
@@ -13,7 +13,7 @@
13
13
  <h2>window utools object function!!</h2>
14
14
  <hr />
15
15
  <script type="module">
16
- import * as utools from "../lib/bundle.esm.js"
16
+ import * as utools from "../lib/index.js"
17
17
  window.utools = utools
18
18
  </script>
19
19
  </body>
package/rollup.config.js CHANGED
@@ -14,7 +14,7 @@ export default {
14
14
  output: [
15
15
  {
16
16
  format: "cjs",
17
- file: "lib/bundle.cjs.js",
17
+ file: "lib/index.cjs.js",
18
18
  sourcemap: true,
19
19
  },
20
20
  {
package/test/tree.test.ts DELETED
@@ -1,5 +0,0 @@
1
- const nodeList = [
2
- { id: "1-1", children: [{ id: "1-2-1" }, { id: "1-2-2" }] },
3
- { id: "2-1" },
4
- { id: "3-1", children: [{ id: "3-2-1", children: [{ id: "3-3-1" }] }] },
5
- ];
@@ -1,74 +0,0 @@
1
- import { describe, expect, test } from "@jest/globals";
2
- import { getTypeof, isArray, isNumber, isString, isBoolean, isObject, isFunction } from "../src/main";
3
-
4
- describe("utools", () => {
5
- test("get value typeof", () => {
6
- expect(getTypeof("string")).toBe("String");
7
- });
8
- });
9
-
10
- describe("utools", () => {
11
- test("get value typeof", () => {
12
- expect(getTypeof(1024)).toBe("Number");
13
- });
14
- });
15
-
16
- describe("utools", () => {
17
- test("get value typeof", () => {
18
- expect(getTypeof(false)).toBe("Boolean");
19
- });
20
- });
21
-
22
- describe("utools", () => {
23
- test("value is Array", () => {
24
- expect(isArray([1, 2, 3])).toBe(true);
25
- });
26
- });
27
-
28
- describe("utools", () => {
29
- test("value is Array", () => {
30
- expect(isArray({ name: "lx" })).toBe(false);
31
- });
32
- });
33
-
34
- describe("utools", () => {
35
- test("value is number", () => {
36
- expect(isNumber("hello world")).toBe(false);
37
- });
38
- });
39
-
40
- describe("utools", () => {
41
- test("value is number", () => {
42
- expect(isNumber(1024)).toBe(true);
43
- });
44
- });
45
-
46
- describe("utools", () => {
47
- test("value is string", () => {
48
- expect(isString(1024)).toBe(false);
49
- });
50
- });
51
-
52
- describe("utools", () => {
53
- test("value is String", () => {
54
- expect(isString("hello world")).toBe(true);
55
- });
56
- });
57
-
58
- describe("utools", () => {
59
- test("value is bol", () => {
60
- expect(isObject({ name: "lx" })).toBe(true);
61
- });
62
- });
63
-
64
- describe("utools", () => {
65
- test("value is bol", () => {
66
- expect(isBoolean(false)).toBe(true);
67
- });
68
- });
69
-
70
- describe("utools", () => {
71
- test("value is bol", () => {
72
- expect(isFunction({ name: "lx" })).toBe(false);
73
- });
74
- });