@lijuhong1981/jsmath 1.2.0 → 1.2.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.
package/index.js CHANGED
@@ -33,7 +33,6 @@ import {
33
33
  EPSILON20,
34
34
  EPSILON21,
35
35
  } from "./src/Constant.js";
36
- import generateUUID from "./src/generateUUID.js";
37
36
  import degreesToRadians from "./src/degreesToRadians.js";
38
37
  import radiansToDegrees from "./src/radiansToDegrees.js";
39
38
  import clamp from "./src/clamp.js";
@@ -93,8 +92,6 @@ export {
93
92
  EPSILON19,
94
93
  EPSILON20,
95
94
  EPSILON21,
96
- generateUUID,
97
- generateUUID as createUUID,
98
95
  degreesToRadians,
99
96
  radiansToDegrees,
100
97
  clamp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lijuhong1981/jsmath",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "> TODO: description",
5
5
  "author": "lijuhong1981",
6
6
  "homepage": "https://github.com/lijuhong1981/jslibs#readme",
@@ -18,5 +18,5 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/lijuhong1981/jslibs/issues"
20
20
  },
21
- "gitHead": "07e6d454c96f2687462dec07b8dca21fc412d381"
21
+ "gitHead": "cfd2fd5abb2b92181343090dfd26818e7aa94078"
22
22
  }
@@ -1,19 +0,0 @@
1
- /**
2
- * Creates a Universally Unique IDentifier (UUID) string. A UUID is 128 bits long, and can guarantee uniqueness across space and time.
3
- *
4
- * @function
5
- *
6
- * @returns {String}
7
- *
8
- * @see {@link http://www.ietf.org/rfc/rfc4122.txt RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace}
9
- */
10
- function generateUUID() {
11
- // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
12
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
13
- const r = (Math.random() * 16) | 0;
14
- const v = c === "x" ? r : (r & 0x3) | 0x8;
15
- return v.toString(16);
16
- });
17
- }
18
-
19
- export default generateUUID;