🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@privy-io/encoding

Package Overview
Dependencies
Maintainers
8
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@privy-io/encoding - npm Package Compare versions

Comparing version
0.2.0
to
0.2.1
+1
-1
dist/cjs/hex/to-bytes-from-hex-string.js

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

"use strict";var e=require("@scure/base");exports.toBytesFromHexString=r=>Uint8Array.from(e.hex.decode(r));
"use strict";var e=require("@scure/base");exports.toBytesFromHexString=r=>Uint8Array.from(e.hex.decode(r.startsWith("0x")?r.slice(2):r));
//# sourceMappingURL=to-bytes-from-hex-string.js.map

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

{"version":3,"file":"to-bytes-from-hex-string.js","sources":["../../../src/hex/to-bytes-from-hex-string.ts"],"names":["o","Uint8Array","from","hex","decode","str"],"mappings":"uEAIoCA,GAClCC,WAAWC,KAAKC,EAAAA,IAAIC,OAAOC"}
{"version":3,"file":"to-bytes-from-hex-string.js","sources":["../../../src/hex/to-bytes-from-hex-string.ts"],"names":["t","Uint8Array","from","hex","decode","str","startsWith","slice"],"mappings":"uEAIoCA,GAClCC,WAAWC,KAAKC,EAAAA,IAAIC,OAAOC,EAAIC,WAAW,MAAQD,EAAIE,MAAM,GAAKF"}

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

"use strict";var t=require("./base64/to-base64-string-from-bytes.js"),e=require("./base64/to-bytes-from-base64-string.js"),r=require("./base64url/to-base64url-string-from-bytes.js"),s=require("./base64url/to-bytes-from-base64url-string.js"),o=require("./hex/to-bytes-from-hex-string.js"),i=require("./hex/to-hex-string-from-bytes.js"),y=require("./utf8/to-bytes-from-utf8-string.js"),u=require("./utf8/to-utf8-string-from-bytes.js");require("@scure/base");const m={utf8:{fromBytes:u.toUtf8StringFromBytes,toBytes:y.toBytesFromUtf8String},base64:{fromBytes:t.toBase64StringFromBytes,toBytes:e.toBytesFromBase64String},base64url:{fromBytes:r.toBase64urlStringFromBytes,toBytes:s.toBytesFromBase64urlString},hex:{fromBytes:i.toHexStringFromBytes,toBytes:o.toBytesFromHexString}};exports.VERSION="0.2.0",exports.encoding=m;
"use strict";var t=require("./base64/to-base64-string-from-bytes.js"),e=require("./base64/to-bytes-from-base64-string.js"),r=require("./base64url/to-base64url-string-from-bytes.js"),s=require("./base64url/to-bytes-from-base64url-string.js"),o=require("./hex/to-bytes-from-hex-string.js"),i=require("./hex/to-hex-string-from-bytes.js"),y=require("./utf8/to-bytes-from-utf8-string.js"),u=require("./utf8/to-utf8-string-from-bytes.js");require("@scure/base");const m={utf8:{fromBytes:u.toUtf8StringFromBytes,toBytes:y.toBytesFromUtf8String},base64:{fromBytes:t.toBase64StringFromBytes,toBytes:e.toBytesFromBase64String},base64url:{fromBytes:r.toBase64urlStringFromBytes,toBytes:s.toBytesFromBase64urlString},hex:{fromBytes:i.toHexStringFromBytes,toBytes:o.toBytesFromHexString}};exports.VERSION="0.2.1",exports.encoding=m;
//# sourceMappingURL=index.js.map

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

import{hex as r}from"@scure/base";const o=o=>Uint8Array.from(r.decode(o));export{o as toBytesFromHexString};
import{hex as r}from"@scure/base";const t=t=>Uint8Array.from(r.decode(t.startsWith("0x")?t.slice(2):t));export{t as toBytesFromHexString};
//# sourceMappingURL=to-bytes-from-hex-string.mjs.map

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

{"version":3,"file":"to-bytes-from-hex-string.mjs","sources":["../../../src/hex/to-bytes-from-hex-string.ts"],"names":["toBytesFromHexString","o","Uint8Array","from","hex","decode","str"],"mappings":"kCAIO,MAAMA,EAAuBC,GAClCC,WAAWC,KAAKC,EAAIC,OAAOC"}
{"version":3,"file":"to-bytes-from-hex-string.mjs","sources":["../../../src/hex/to-bytes-from-hex-string.ts"],"names":["toBytesFromHexString","t","Uint8Array","from","hex","decode","str","startsWith","slice"],"mappings":"kCAIO,MAAMA,EAAuBC,GAClCC,WAAWC,KAAKC,EAAIC,OAAOC,EAAIC,WAAW,MAAQD,EAAIE,MAAM,GAAKF"}

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

import{toBase64StringFromBytes as t}from"./base64/to-base64-string-from-bytes.mjs";import{toBytesFromBase64String as s}from"./base64/to-bytes-from-base64-string.mjs";import{toBase64urlStringFromBytes as r}from"./base64url/to-base64url-string-from-bytes.mjs";import{toBytesFromBase64urlString as o}from"./base64url/to-bytes-from-base64url-string.mjs";import{toBytesFromHexString as m}from"./hex/to-bytes-from-hex-string.mjs";import{toHexStringFromBytes as e}from"./hex/to-hex-string-from-bytes.mjs";import{toBytesFromUtf8String as f}from"./utf8/to-bytes-from-utf8-string.mjs";import{toUtf8StringFromBytes as b}from"./utf8/to-utf8-string-from-bytes.mjs";import"@scure/base";const i="0.2.0",y={utf8:{fromBytes:b,toBytes:f},base64:{fromBytes:t,toBytes:s},base64url:{fromBytes:r,toBytes:o},hex:{fromBytes:e,toBytes:m}};export{i as VERSION,y as encoding};
import{toBase64StringFromBytes as t}from"./base64/to-base64-string-from-bytes.mjs";import{toBytesFromBase64String as s}from"./base64/to-bytes-from-base64-string.mjs";import{toBase64urlStringFromBytes as r}from"./base64url/to-base64url-string-from-bytes.mjs";import{toBytesFromBase64urlString as o}from"./base64url/to-bytes-from-base64url-string.mjs";import{toBytesFromHexString as m}from"./hex/to-bytes-from-hex-string.mjs";import{toHexStringFromBytes as e}from"./hex/to-hex-string-from-bytes.mjs";import{toBytesFromUtf8String as f}from"./utf8/to-bytes-from-utf8-string.mjs";import{toUtf8StringFromBytes as b}from"./utf8/to-utf8-string-from-bytes.mjs";import"@scure/base";const i="0.2.1",y={utf8:{fromBytes:b,toBytes:f},base64:{fromBytes:t,toBytes:s},base64url:{fromBytes:r,toBytes:o},hex:{fromBytes:e,toBytes:m}};export{i as VERSION,y as encoding};
//# sourceMappingURL=index.mjs.map
{
"name": "@privy-io/encoding",
"version": "0.2.0",
"version": "0.2.1",
"description": "Utilities for encoding and decoding strings",

@@ -54,4 +54,4 @@ "license": "Apache-2.0",

"typescript": "~6.0.2",
"@privy-io/tsconfig": "0.0.0",
"@privy-io/build-config": "1.0.0"
"@privy-io/build-config": "1.0.0",
"@privy-io/tsconfig": "0.0.0"
},

@@ -58,0 +58,0 @@ "publishConfig": {