@onflow/util-uid
Advanced tools
Comparing version 1.0.1 to 1.0.2-alpha.0
# @onflow/util-uid | ||
## 1.0.2-alpha.0 | ||
### Patch Changes | ||
- [#1227](https://github.com/onflow/fcl-js/pull/1227) [`352f1460`](https://github.com/onflow/fcl-js/commit/352f1460a2f34d228a74fa4bbc6fcf6e68a968b6) Thanks [@jribbink](https://github.com/jribbink)! - Switch to fcl-bundle instead of microbundle for build scripts | ||
## 1.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -1,5 +0,10 @@ | ||
var HEX = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
// Inspired by: https://github.com/lukeed/uid/blob/master/src/index.js , thank you Luke! https://github.com/lukeed | ||
var HEX = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | ||
var T = HEX.length; | ||
function uid() { | ||
var str = '', | ||
var str = "", | ||
num = 32; | ||
@@ -6,0 +11,0 @@ |
@@ -1,5 +0,6 @@ | ||
var HEX = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; | ||
// Inspired by: https://github.com/lukeed/uid/blob/master/src/index.js , thank you Luke! https://github.com/lukeed | ||
var HEX = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | ||
var T = HEX.length; | ||
function uid() { | ||
var str = '', | ||
var str = "", | ||
num = 32; | ||
@@ -6,0 +7,0 @@ |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(global = global || self, factory(global.utilUid = {})); | ||
}(this, (function (exports) { | ||
var HEX = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["onflowUtil-uid"] = {})); | ||
})(this, (function (exports) { 'use strict'; | ||
// Inspired by: https://github.com/lukeed/uid/blob/master/src/index.js , thank you Luke! https://github.com/lukeed | ||
var HEX = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | ||
var T = HEX.length; | ||
function uid() { | ||
var str = '', | ||
var str = "", | ||
num = 32; | ||
@@ -21,3 +23,5 @@ | ||
}))); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); | ||
//# sourceMappingURL=util-uid.umd.js.map |
{ | ||
"name": "@onflow/util-uid", | ||
"version": "1.0.1", | ||
"version": "1.0.2-alpha.0", | ||
"description": "Utilities to generate Unique Identifiers", | ||
@@ -21,5 +21,5 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@onflow/fcl-bundle": "^1.0.1-alpha.0", | ||
"jest": "25.3.0", | ||
"jest-esm-transformer": "1.0.0", | ||
"microbundle": "0.12.0-next.8" | ||
"jest-esm-transformer": "1.0.0" | ||
}, | ||
@@ -33,6 +33,9 @@ "source": "src/util-uid.js", | ||
"test": "jest", | ||
"build": "microbundle --no-compress", | ||
"build": "fcl-bundle", | ||
"test:watch": "jest --watch", | ||
"start": "microbundle watch --no-compress" | ||
"start": "fcl-bundle --watch" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.18.6" | ||
} | ||
} |
// Inspired by: https://github.com/lukeed/uid/blob/master/src/index.js , thank you Luke! https://github.com/lukeed | ||
var HEX = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | ||
var HEX = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | ||
var T = HEX.length | ||
export function uid () { | ||
var str='', num=32 | ||
while (num--) str += HEX[Math.random() * T | 0] | ||
export function uid() { | ||
var str = "", | ||
num = 32 | ||
while (num--) str += HEX[(Math.random() * T) | 0] | ||
return str | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7527
1
11
61
1
+ Added@babel/runtime@^7.18.6
+ Added@babel/runtime@7.26.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)