@instructure/uid 8.12.1-snapshot.7 → 8.13.1-snapshot.9

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01)
7
+
8
+ **Note:** Version bump only for package @instructure/uid
9
+
6
10
  # [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/uid
package/es/uid.js CHANGED
@@ -36,7 +36,9 @@ const dictionaryLengthMinus1 = dictionary.length - 1;
36
36
  * @returns {String} a unique id
37
37
  */
38
38
 
39
- function uid(prefix = '', length = 12) {
39
+ function uid() {
40
+ let prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '';
41
+ let length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 12;
40
42
  const id = `u${_uid(length - 1)}`;
41
43
 
42
44
  if (prefix && process.env.NODE_ENV !== 'production') {
package/lib/index.js CHANGED
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.default = void 0;
6
7
  Object.defineProperty(exports, "uid", {
7
8
  enumerable: true,
8
9
  get: function () {
9
10
  return _uid.uid;
10
11
  }
11
12
  });
12
- exports.default = void 0;
13
13
 
14
14
  var _uid = require("./uid");
15
15
 
package/lib/uid.js CHANGED
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.uid = uid;
7
6
  exports.default = void 0;
7
+ exports.uid = uid;
8
8
 
9
9
  /*
10
10
  * The MIT License (MIT)
@@ -44,7 +44,9 @@ const dictionaryLengthMinus1 = dictionary.length - 1;
44
44
  * @returns {String} a unique id
45
45
  */
46
46
 
47
- function uid(prefix = '', length = 12) {
47
+ function uid() {
48
+ let prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '';
49
+ let length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 12;
48
50
  const id = `u${_uid(length - 1)}`;
49
51
 
50
52
  if (prefix && process.env.NODE_ENV !== 'production') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/uid",
3
- "version": "8.12.1-snapshot.7+1e7ac8219",
3
+ "version": "8.13.1-snapshot.9+f32ba918e",
4
4
  "description": "A unique (CSS-safe) id generator made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.12.1-snapshot.7+1e7ac8219",
27
- "@instructure/ui-test-utils": "8.12.1-snapshot.7+1e7ac8219"
26
+ "@instructure/ui-babel-preset": "8.13.1-snapshot.9+f32ba918e",
27
+ "@instructure/ui-test-utils": "8.13.1-snapshot.9+f32ba918e"
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.13.10"
@@ -33,5 +33,5 @@
33
33
  "access": "public"
34
34
  },
35
35
  "sideEffects": false,
36
- "gitHead": "1e7ac821932a91fe9ef761c96f747c7ea1f3925a"
36
+ "gitHead": "f32ba918e4d3ce76c6ee95c856584d00a9d80958"
37
37
  }