@instructure/uid 8.12.1-snapshot.44 → 8.12.1-snapshot.50

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/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.44+6f00103af",
3
+ "version": "8.12.1-snapshot.50+3786369ec",
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.44+6f00103af",
27
- "@instructure/ui-test-utils": "8.12.1-snapshot.44+6f00103af"
26
+ "@instructure/ui-babel-preset": "8.12.1-snapshot.50+3786369ec",
27
+ "@instructure/ui-test-utils": "8.12.1-snapshot.50+3786369ec"
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": "6f00103af2fc970bbdcc8c2505413e42257afef4"
36
+ "gitHead": "3786369ec892bc0f716844828cc2729447adb8be"
37
37
  }