@instructure/uid
Advanced tools
+1
-1
@@ -6,3 +6,3 @@ # Change Log | ||
| ## [11.7.2-snapshot-9](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-9) (2026-03-27) | ||
| ## [11.7.2](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2) (2026-04-23) | ||
@@ -9,0 +9,0 @@ **Note:** Version bump only for package @instructure/uid |
+2
-1
@@ -42,4 +42,5 @@ /* | ||
| function uid(prefix = '', length = 12) { | ||
| var _process, _process$env; | ||
| const id = `u${_uid(length - 1)}`; | ||
| if (prefix && process.env.NODE_ENV !== 'production') { | ||
| if (prefix && typeof process !== 'undefined' && ((_process = process) === null || _process === void 0 ? void 0 : (_process$env = _process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) !== 'production') { | ||
| return `${prefix}__${id}`; | ||
@@ -46,0 +47,0 @@ } else { |
+2
-1
@@ -49,4 +49,5 @@ "use strict"; | ||
| function uid(prefix = '', length = 12) { | ||
| var _process, _process$env; | ||
| const id = `u${_uid(length - 1)}`; | ||
| if (prefix && process.env.NODE_ENV !== 'production') { | ||
| if (prefix && typeof process !== 'undefined' && ((_process = process) === null || _process === void 0 ? void 0 : (_process$env = _process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) !== 'production') { | ||
| return `${prefix}__${id}`; | ||
@@ -53,0 +54,0 @@ } else { |
+2
-2
| { | ||
| "name": "@instructure/uid", | ||
| "version": "11.7.2-snapshot-9", | ||
| "version": "11.7.2", | ||
| "description": "A unique (CSS-safe) id generator made by Instructure Inc.", | ||
@@ -22,3 +22,3 @@ "author": "Instructure, Inc. Engineering and Product Design", | ||
| "vitest": "^3.2.2", | ||
| "@instructure/ui-babel-preset": "11.7.2-snapshot-9" | ||
| "@instructure/ui-babel-preset": "11.7.2" | ||
| }, | ||
@@ -25,0 +25,0 @@ "publishConfig": { |
+7
-1
@@ -27,2 +27,4 @@ /* | ||
| declare const process: Record<string, any> | undefined | ||
| const dictionary = | ||
@@ -45,3 +47,7 @@ 'getRandomVcryp0123456789bfhijklqsuvwxzABCDEFGHIJKLMNOPQSTUWXYZ' | ||
| const id = `u${_uid(length - 1)}` | ||
| if (prefix && process.env.NODE_ENV !== 'production') { | ||
| if ( | ||
| prefix && | ||
| typeof process !== 'undefined' && | ||
| process?.env?.NODE_ENV !== 'production' | ||
| ) { | ||
| return `${prefix}__${id}` | ||
@@ -48,0 +54,0 @@ } else { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../src/uid.ts"],"names":[],"mappings":"AA8BA;;;;;;;;;;GAUG;AACH,iBAAS,GAAG,CAAC,MAAM,SAAK,EAAE,MAAM,SAAK,UAOpC;AAsBD,eAAe,GAAG,CAAA;AAClB,OAAO,EAAE,GAAG,EAAE,CAAA"} | ||
| {"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../src/uid.ts"],"names":[],"mappings":"AAgCA;;;;;;;;;;GAUG;AACH,iBAAS,GAAG,CAAC,MAAM,SAAK,EAAE,MAAM,SAAK,UAWpC;AAsBD,eAAe,GAAG,CAAA;AAClB,OAAO,EAAE,GAAG,EAAE,CAAA"} |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
328
2.18%0
-100%0
-100%63897
-36.18%