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

@corefunc/corefunc

Package Overview
Dependencies
Maintainers
1
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corefunc/corefunc - npm Package Compare versions

Comparing version 0.0.16 to 0.0.18

array/basic/extend.cjs

2

generate/string.ts

@@ -10,3 +10,3 @@ /**

possible: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
) {
): string {
let index = 0;

@@ -13,0 +13,0 @@ let text = "";

@@ -1,2 +0,2 @@

export default function generateToken(size: number = 16) {
export default function generateToken(size: number = 16): string {
const random = new Array(size);

@@ -3,0 +3,0 @@ for (let index = 0; index < size; index++) {

const lut = [];
for (let index = 0; index < 256; index += 1) {
// eslint-disable-next-line no-ternary
lut[index] = (index < 16 ? "0" : "") + index.toString(16);

@@ -4,0 +5,0 @@ }

@@ -62,3 +62,3 @@ {

},
"version": "0.0.16"
"version": "0.0.18"
}
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