Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onflow/util-uid

Package Overview
Dependencies
Maintainers
16
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onflow/util-uid - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2-alpha.0

6

CHANGELOG.md
# @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 @@

9

dist/util-uid.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc