🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@instructure/uid

Package Overview
Dependencies
Maintainers
54
Versions
2030
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/uid - npm Package Compare versions

Comparing version
11.7.2-snapshot-9
to
11.7.2
+1
-1
CHANGELOG.md

@@ -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

@@ -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 {

@@ -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 {

{
"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": {

@@ -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