Socket
Socket
Sign inDemoInstall

@solana/codecs-strings

Package Overview
Dependencies
Maintainers
14
Versions
1073
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/codecs-strings - npm Package Compare versions

Comparing version 2.0.0-experimental.47afb90 to 2.0.0-experimental.4c1874d

4

dist/index.browser.js

@@ -195,3 +195,3 @@ import { combineCodec, fixEncoder, mergeBytes, fixDecoder, assertByteArrayIsNotEmptyForCodec, assertByteArrayHasEnoughBytesForCodec } from '@solana/codecs-core';

description: "utf8",
encode: (value) => new Uint8Array((textEncoder || (textEncoder = new o())).encode(value)),
encode: (value) => new Uint8Array((textEncoder ||= new o()).encode(value)),
fixedSize: null,

@@ -205,3 +205,3 @@ maxSize: null

decode(bytes, offset = 0) {
const value = (textDecoder || (textDecoder = new e())).decode(bytes.slice(offset));
const value = (textDecoder ||= new e()).decode(bytes.slice(offset));
return [removeNullCharacters(value), bytes.length];

@@ -208,0 +208,0 @@ },

@@ -67,3 +67,3 @@ this.globalThis = this.globalThis || {};

decode: decoder.decode,
description: description ?? encoder.description,
description: description != null ? description : encoder.description,
encode: encoder.encode,

@@ -76,3 +76,3 @@ fixedSize: encoder.fixedSize,

return {
description: description ?? `fixed(${fixedBytes}, ${data.description})`,
description: description != null ? description : `fixed(${fixedBytes}, ${data.description})`,
fixedSize: fixedBytes,

@@ -295,2 +295,3 @@ maxSize: fixedBytes

function sharedNumberFactory(input) {
var _a;
let littleEndian;

@@ -303,3 +304,3 @@ let defaultDescription = input.name;

return {
description: input.config.description ?? defaultDescription,
description: (_a = input.config.description) != null ? _a : defaultDescription,
fixedSize: input.size,

@@ -341,4 +342,4 @@ littleEndian,

function toArrayBuffer(bytes, offset, length) {
const bytesOffset = bytes.byteOffset + (offset ?? 0);
const bytesLength = length ?? bytes.byteLength;
const bytesOffset = bytes.byteOffset + (offset != null ? offset : 0);
const bytesLength = length != null ? length : bytes.byteLength;
return bytes.buffer.slice(bytesOffset, bytesOffset + bytesLength);

@@ -390,5 +391,6 @@ }

var getStringEncoder = (config = {}) => {
const size = config.size ?? getU32Encoder();
const encoding = config.encoding ?? getUtf8Encoder();
const description = config.description ?? `string(${encoding.description}; ${getSizeDescription(size)})`;
var _a, _b, _c;
const size = (_a = config.size) != null ? _a : getU32Encoder();
const encoding = (_b = config.encoding) != null ? _b : getUtf8Encoder();
const description = (_c = config.description) != null ? _c : `string(${encoding.description}; ${getSizeDescription(size)})`;
if (size === "variable") {

@@ -412,5 +414,6 @@ return { ...encoding, description };

var getStringDecoder = (config = {}) => {
const size = config.size ?? getU32Decoder();
const encoding = config.encoding ?? getUtf8Decoder();
const description = config.description ?? `string(${encoding.description}; ${getSizeDescription(size)})`;
var _a, _b, _c;
const size = (_a = config.size) != null ? _a : getU32Decoder();
const encoding = (_b = config.encoding) != null ? _b : getUtf8Decoder();
const description = (_c = config.description) != null ? _c : `string(${encoding.description}; ${getSizeDescription(size)})`;
if (size === "variable") {

@@ -417,0 +420,0 @@ return { ...encoding, description };

@@ -176,3 +176,3 @@ import { combineCodec, mapEncoder, mapDecoder, fixEncoder, mergeBytes, fixDecoder, assertByteArrayIsNotEmptyForCodec, assertByteArrayHasEnoughBytesForCodec } from '@solana/codecs-core';

description: "utf8",
encode: (value) => new Uint8Array((textEncoder || (textEncoder = new o())).encode(value)),
encode: (value) => new Uint8Array((textEncoder ||= new o()).encode(value)),
fixedSize: null,

@@ -186,3 +186,3 @@ maxSize: null

decode(bytes, offset = 0) {
const value = (textDecoder || (textDecoder = new e())).decode(bytes.slice(offset));
const value = (textDecoder ||= new e()).decode(bytes.slice(offset));
return [removeNullCharacters(value), bytes.length];

@@ -252,3 +252,1 @@ },

export { assertValidBaseString, getBase10Codec, getBase10Decoder, getBase10Encoder, getBase16Codec, getBase16Decoder, getBase16Encoder, getBase58Codec, getBase58Decoder, getBase58Encoder, getBase64Codec, getBase64Decoder, getBase64Encoder, getBaseXCodec, getBaseXDecoder, getBaseXEncoder, getBaseXResliceCodec, getBaseXResliceDecoder, getBaseXResliceEncoder, getStringCodec, getStringDecoder, getStringEncoder, getUtf8Codec, getUtf8Decoder, getUtf8Encoder, padNullCharacters, removeNullCharacters };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.native.js.map

@@ -190,3 +190,3 @@ import { combineCodec, fixEncoder, mergeBytes, fixDecoder, assertByteArrayIsNotEmptyForCodec, assertByteArrayHasEnoughBytesForCodec } from '@solana/codecs-core';

description: "utf8",
encode: (value) => new Uint8Array((textEncoder || (textEncoder = new o())).encode(value)),
encode: (value) => new Uint8Array((textEncoder ||= new o()).encode(value)),
fixedSize: null,

@@ -200,3 +200,3 @@ maxSize: null

decode(bytes, offset = 0) {
const value = (textDecoder || (textDecoder = new e())).decode(bytes.slice(offset));
const value = (textDecoder ||= new e()).decode(bytes.slice(offset));
return [removeNullCharacters(value), bytes.length];

@@ -203,0 +203,0 @@ },

@@ -5,31 +5,31 @@ this.globalThis = this.globalThis || {};

function u(e,t,r=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new Error(`Expected a string of base ${e.length}, got [${r}].`)}function S(e,t,r=0){if(t.length-r<=0)throw new Error(`Codec [${e}] cannot decode empty byte arrays.`)}function x(e,t,r,n=0){let o=r.length-n;if(o<t)throw new Error(`Codec [${e}] expected ${t} bytes, got ${o}.`)}var I=e=>{let t=e.filter(i=>i.length);if(t.length===0)return e.length?e[0]:new Uint8Array;if(t.length===1)return t[0];let r=t.reduce((i,c)=>i+c.length,0),n=new Uint8Array(r),o=0;return t.forEach(i=>{n.set(i,o),o+=i.length;}),n},H=(e,t)=>{if(e.length>=t)return e;let r=new Uint8Array(t).fill(0);return r.set(e),r},U=(e,t)=>H(e.length<=t?e:e.slice(0,t),t);function d(e,t,r){if(e.fixedSize!==t.fixedSize)throw new Error(`Encoder and decoder must have the same fixed size, got [${e.fixedSize}] and [${t.fixedSize}].`);if(e.maxSize!==t.maxSize)throw new Error(`Encoder and decoder must have the same max size, got [${e.maxSize}] and [${t.maxSize}].`);if(r===void 0&&e.description!==t.description)throw new Error(`Encoder and decoder must have the same description, got [${e.description}] and [${t.description}]. Pass a custom description as a third argument if you want to override the description and bypass this error.`);return {decode:t.decode,description:r??e.description,encode:e.encode,fixedSize:e.fixedSize,maxSize:e.maxSize}}function y(e,t,r){return {description:r??`fixed(${t}, ${e.description})`,fixedSize:t,maxSize:t}}function w(e,t,r){return {...y(e,t,r),encode:n=>U(e.encode(n),t)}}function N(e,t,r){return {...y(e,t,r),decode:(n,o=0)=>{x("fixCodec",t,n,o),(o>0||n.length>t)&&(n=n.slice(o,o+t)),e.fixedSize!==null&&(n=U(n,e.fixedSize));let[i]=e.decode(n,0);return [i,o+t]}}}var p=e=>{let t=e.length,r=BigInt(t);return {description:`base${t}`,encode(n){if(u(e,n),n==="")return new Uint8Array;let o=[...n],i=o.findIndex(g=>g!==e[0]);i=i===-1?o.length:i;let c=Array(i).fill(0);if(i===o.length)return Uint8Array.from(c);let a=o.slice(i),s=0n,m=1n;for(let g=a.length-1;g>=0;g-=1)s+=m*BigInt(e.indexOf(a[g])),m*=r;let l=[];for(;s>0n;)l.unshift(Number(s%256n)),s/=256n;return Uint8Array.from(c.concat(l))},fixedSize:null,maxSize:null}},z=e=>{let t=e.length,r=BigInt(t);return {decode(n,o=0){let i=o===0?n:n.slice(o);if(i.length===0)return ["",0];let c=i.findIndex(l=>l!==0);c=c===-1?i.length:c;let a=e[0].repeat(c);if(c===i.length)return [a,n.length];let s=i.slice(c).reduce((l,g)=>l*256n+BigInt(g),0n),m=[];for(;s>0n;)m.unshift(e[Number(s%r)]),s/=r;return [a+m.join(""),n.length]},description:`base${t}`,fixedSize:null,maxSize:null}},h=e=>d(p(e),z(e));var E="0123456789",me=()=>p(E),le=()=>z(E),ue=()=>h(E);var P=()=>({description:"base16",encode(e){let t=e.toLowerCase();u("0123456789abcdef",t,e);let r=t.match(/.{1,2}/g);return Uint8Array.from(r?r.map(n=>parseInt(n,16)):[])},fixedSize:null,maxSize:null}),W=()=>({decode(e,t=0){return [e.slice(t).reduce((n,o)=>n+o.toString(16).padStart(2,"0"),""),e.length]},description:"base16",fixedSize:null,maxSize:null}),Be=()=>d(P(),W());var C="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Ie=()=>p(C),Ue=()=>z(C),ye=()=>h(C);var B=(e,t)=>({description:`base${e.length}`,encode(r){if(u(e,r),r==="")return new Uint8Array;let n=[...r].map(o=>e.indexOf(o));return new Uint8Array(F(n,t,8,!1))},fixedSize:null,maxSize:null}),b=(e,t)=>({decode(r,n=0){let o=n===0?r:r.slice(n);return o.length===0?["",r.length]:[F([...o],8,t,!0).map(c=>e[c]).join(""),r.length]},description:`base${e.length}`,fixedSize:null,maxSize:null}),Te=(e,t)=>d(B(e,t),b(e,t));function F(e,t,r,n){let o=[],i=0,c=0,a=(1<<r)-1;for(let s of e)for(i=i<<t|s,c+=t;c>=r;)c-=r,o.push(i>>c&a);return n&&c>0&&o.push(i<<r-c&a),o}var j=()=>({description:"base64",encode(e){try{let t=atob(e).split("").map(r=>r.charCodeAt(0));return new Uint8Array(t)}catch{throw new Error(`Expected a string of base 64, got [${e}].`)}},fixedSize:null,maxSize:null}),M=()=>({decode(e,t=0){let r=e.slice(t);return [btoa(String.fromCharCode(...r)),e.length]},description:"base64",fixedSize:null,maxSize:null}),Pe=()=>d(j(),M());var O=e=>e.replace(/\u0000/g,""),Me=(e,t)=>e.padEnd(t,"\0");function G(e,t,r,n){if(n<t||n>r)throw new Error(`Codec [${e}] expected number to be in the range [${t}, ${r}], got ${n}.`)}function T(e){let t,r=e.name;return e.size>1&&(t=!("endian"in e.config)||e.config.endian===0,r+=t?"(le)":"(be)"),{description:e.config.description??r,fixedSize:e.size,littleEndian:t,maxSize:e.size}}function J(e){let t=T(e);return {description:t.description,encode(r){e.range&&G(e.name,e.range[0],e.range[1],r);let n=new ArrayBuffer(e.size);return e.set(new DataView(n),r,t.littleEndian),new Uint8Array(n)},fixedSize:t.fixedSize,maxSize:t.maxSize}}function Z(e){let t=T(e);return {decode(r,n=0){S(t.description,r,n),x(t.description,e.size,r,n);let o=new DataView(q(r,n,e.size));return [e.get(o,t.littleEndian),n+e.size]},description:t.description,fixedSize:t.fixedSize,maxSize:t.maxSize}}function q(e,t,r){let n=e.byteOffset+(t??0),o=r??e.byteLength;return e.buffer.slice(n,n+o)}var X=(e={})=>J({config:e,name:"u32",range:[0,+"0xffffffff"],set:(t,r,n)=>t.setUint32(0,r,n),size:4}),V=(e={})=>Z({config:e,get:(t,r)=>t.getUint32(0,r),name:"u32",size:4});var R=globalThis.TextDecoder,L=globalThis.TextEncoder;var v=()=>{let e;return {description:"utf8",encode:t=>new Uint8Array((e||(e=new L)).encode(t)),fixedSize:null,maxSize:null}},D=()=>{let e;return {decode(t,r=0){let n=(e||(e=new R)).decode(t.slice(r));return [O(n),t.length]},description:"utf8",fixedSize:null,maxSize:null}},ct=()=>d(v(),D());var K=(e={})=>{let t=e.size??X(),r=e.encoding??v(),n=e.description??`string(${r.description}; ${k(t)})`;return t==="variable"?{...r,description:n}:typeof t=="number"?w(r,t,n):{description:n,encode:o=>{let i=r.encode(o),c=t.encode(i.length);return I([c,i])},fixedSize:null,maxSize:null}},Q=(e={})=>{let t=e.size??V(),r=e.encoding??D(),n=e.description??`string(${r.description}; ${k(t)})`;return t==="variable"?{...r,description:n}:typeof t=="number"?N(r,t,n):{decode:(o,i=0)=>{S("string",o,i);let[c,a]=t.decode(o,i),s=Number(c);i=a;let m=o.slice(i,i+s);x("string",s,m);let[l,g]=r.decode(m);return i+=g,[l,i]},description:n,fixedSize:null,maxSize:null}},Et=(e={})=>d(K(e),Q(e));function k(e){return typeof e=="object"?e.description:`${e}`}
function l(e,r,t=r){if(!r.match(new RegExp(`^[${e}]*$`)))throw new Error(`Expected a string of base ${e.length}, got [${t}].`)}function S(e,r,t=0){if(r.length-t<=0)throw new Error(`Codec [${e}] cannot decode empty byte arrays.`)}function x(e,r,t,n=0){let o=t.length-n;if(o<r)throw new Error(`Codec [${e}] expected ${r} bytes, got ${o}.`)}var U=e=>{let r=e.filter(i=>i.length);if(r.length===0)return e.length?e[0]:new Uint8Array;if(r.length===1)return r[0];let t=r.reduce((i,c)=>i+c.length,0),n=new Uint8Array(t),o=0;return r.forEach(i=>{n.set(i,o),o+=i.length;}),n},j=(e,r)=>{if(e.length>=r)return e;let t=new Uint8Array(r).fill(0);return t.set(e),t},y=(e,r)=>j(e.length<=r?e:e.slice(0,r),r);function a(e,r,t){if(e.fixedSize!==r.fixedSize)throw new Error(`Encoder and decoder must have the same fixed size, got [${e.fixedSize}] and [${r.fixedSize}].`);if(e.maxSize!==r.maxSize)throw new Error(`Encoder and decoder must have the same max size, got [${e.maxSize}] and [${r.maxSize}].`);if(t===void 0&&e.description!==r.description)throw new Error(`Encoder and decoder must have the same description, got [${e.description}] and [${r.description}]. Pass a custom description as a third argument if you want to override the description and bypass this error.`);return {decode:r.decode,description:t!=null?t:e.description,encode:e.encode,fixedSize:e.fixedSize,maxSize:e.maxSize}}function w(e,r,t){return {description:t!=null?t:`fixed(${r}, ${e.description})`,fixedSize:r,maxSize:r}}function N(e,r,t){return {...w(e,r,t),encode:n=>y(e.encode(n),r)}}function A(e,r,t){return {...w(e,r,t),decode:(n,o=0)=>{x("fixCodec",r,n,o),(o>0||n.length>r)&&(n=n.slice(o,o+r)),e.fixedSize!==null&&(n=y(n,e.fixedSize));let[i]=e.decode(n,0);return [i,o+r]}}}var p=e=>{let r=e.length,t=BigInt(r);return {description:`base${r}`,encode(n){if(l(e,n),n==="")return new Uint8Array;let o=[...n],i=o.findIndex(g=>g!==e[0]);i=i===-1?o.length:i;let c=Array(i).fill(0);if(i===o.length)return Uint8Array.from(c);let f=o.slice(i),s=0n,u=1n;for(let g=f.length-1;g>=0;g-=1)s+=u*BigInt(e.indexOf(f[g])),u*=t;let m=[];for(;s>0n;)m.unshift(Number(s%256n)),s/=256n;return Uint8Array.from(c.concat(m))},fixedSize:null,maxSize:null}},z=e=>{let r=e.length,t=BigInt(r);return {decode(n,o=0){let i=o===0?n:n.slice(o);if(i.length===0)return ["",0];let c=i.findIndex(m=>m!==0);c=c===-1?i.length:c;let f=e[0].repeat(c);if(c===i.length)return [f,n.length];let s=i.slice(c).reduce((m,g)=>m*256n+BigInt(g),0n),u=[];for(;s>0n;)u.unshift(e[Number(s%t)]),s/=t;return [f+u.join(""),n.length]},description:`base${r}`,fixedSize:null,maxSize:null}},h=e=>a(p(e),z(e));var E="0123456789",xe=()=>p(E),pe=()=>z(E),ze=()=>h(E);var M=()=>({description:"base16",encode(e){let r=e.toLowerCase();l("0123456789abcdef",r,e);let t=r.match(/.{1,2}/g);return Uint8Array.from(t?t.map(n=>parseInt(n,16)):[])},fixedSize:null,maxSize:null}),G=()=>({decode(e,r=0){return [e.slice(r).reduce((n,o)=>n+o.toString(16).padStart(2,"0"),""),e.length]},description:"base16",fixedSize:null,maxSize:null}),De=()=>a(M(),G());var C="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",we=()=>p(C),Ne=()=>z(C),Ae=()=>h(C);var B=(e,r)=>({description:`base${e.length}`,encode(t){if(l(e,t),t==="")return new Uint8Array;let n=[...t].map(o=>e.indexOf(o));return new Uint8Array(_(n,r,8,!1))},fixedSize:null,maxSize:null}),b=(e,r)=>({decode(t,n=0){let o=n===0?t:t.slice(n);return o.length===0?["",t.length]:[_([...o],8,r,!0).map(c=>e[c]).join(""),t.length]},description:`base${e.length}`,fixedSize:null,maxSize:null}),Re=(e,r)=>a(B(e,r),b(e,r));function _(e,r,t,n){let o=[],i=0,c=0,f=(1<<t)-1;for(let s of e)for(i=i<<r|s,c+=r;c>=t;)c-=t,o.push(i>>c&f);return n&&c>0&&o.push(i<<t-c&f),o}var J=()=>({description:"base64",encode(e){try{let r=atob(e).split("").map(t=>t.charCodeAt(0));return new Uint8Array(r)}catch{throw new Error(`Expected a string of base 64, got [${e}].`)}},fixedSize:null,maxSize:null}),Z=()=>({decode(e,r=0){let t=e.slice(r);return [btoa(String.fromCharCode(...t)),e.length]},description:"base64",fixedSize:null,maxSize:null}),Me=()=>a(J(),Z());var T=e=>e.replace(/\u0000/g,""),Ze=(e,r)=>e.padEnd(r,"\0");function q(e,r,t,n){if(n<r||n>t)throw new Error(`Codec [${e}] expected number to be in the range [${r}, ${t}], got ${n}.`)}function X(e){var n;let r,t=e.name;return e.size>1&&(r=!("endian"in e.config)||e.config.endian===0,t+=r?"(le)":"(be)"),{description:(n=e.config.description)!=null?n:t,fixedSize:e.size,littleEndian:r,maxSize:e.size}}function K(e){let r=X(e);return {description:r.description,encode(t){e.range&&q(e.name,e.range[0],e.range[1],t);let n=new ArrayBuffer(e.size);return e.set(new DataView(n),t,r.littleEndian),new Uint8Array(n)},fixedSize:r.fixedSize,maxSize:r.maxSize}}function Q(e){let r=X(e);return {decode(t,n=0){S(r.description,t,n),x(r.description,e.size,t,n);let o=new DataView(Y(t,n,e.size));return [e.get(o,r.littleEndian),n+e.size]},description:r.description,fixedSize:r.fixedSize,maxSize:r.maxSize}}function Y(e,r,t){let n=e.byteOffset+(r!=null?r:0),o=t!=null?t:e.byteLength;return e.buffer.slice(n,n+o)}var V=(e={})=>K({config:e,name:"u32",range:[0,+"0xffffffff"],set:(r,t,n)=>r.setUint32(0,t,n),size:4}),R=(e={})=>Q({config:e,get:(r,t)=>r.getUint32(0,t),name:"u32",size:4});var L=globalThis.TextDecoder,k=globalThis.TextEncoder;var v=()=>{let e;return {description:"utf8",encode:r=>new Uint8Array((e||(e=new k)).encode(r)),fixedSize:null,maxSize:null}},D=()=>{let e;return {decode(r,t=0){let n=(e||(e=new L)).decode(r.slice(t));return [T(n),r.length]},description:"utf8",fixedSize:null,maxSize:null}},dr=()=>a(v(),D());var ee=(e={})=>{var o,i,c;let r=(o=e.size)!=null?o:V(),t=(i=e.encoding)!=null?i:v(),n=(c=e.description)!=null?c:`string(${t.description}; ${H(r)})`;return r==="variable"?{...t,description:n}:typeof r=="number"?N(t,r,n):{description:n,encode:f=>{let s=t.encode(f),u=r.encode(s.length);return U([u,s])},fixedSize:null,maxSize:null}},re=(e={})=>{var o,i,c;let r=(o=e.size)!=null?o:R(),t=(i=e.encoding)!=null?i:D(),n=(c=e.description)!=null?c:`string(${t.description}; ${H(r)})`;return r==="variable"?{...t,description:n}:typeof r=="number"?A(t,r,n):{decode:(f,s=0)=>{S("string",f,s);let[u,m]=r.decode(f,s),g=Number(u);s=m;let I=f.slice(s,s+g);x("string",g,I);let[P,W]=t.decode(I);return s+=W,[P,s]},description:n,fixedSize:null,maxSize:null}},br=(e={})=>a(ee(e),re(e));function H(e){return typeof e=="object"?e.description:`${e}`}
exports.assertValidBaseString = u;
exports.getBase10Codec = ue;
exports.getBase10Decoder = le;
exports.getBase10Encoder = me;
exports.getBase16Codec = Be;
exports.getBase16Decoder = W;
exports.getBase16Encoder = P;
exports.getBase58Codec = ye;
exports.getBase58Decoder = Ue;
exports.getBase58Encoder = Ie;
exports.getBase64Codec = Pe;
exports.getBase64Decoder = M;
exports.getBase64Encoder = j;
exports.assertValidBaseString = l;
exports.getBase10Codec = ze;
exports.getBase10Decoder = pe;
exports.getBase10Encoder = xe;
exports.getBase16Codec = De;
exports.getBase16Decoder = G;
exports.getBase16Encoder = M;
exports.getBase58Codec = Ae;
exports.getBase58Decoder = Ne;
exports.getBase58Encoder = we;
exports.getBase64Codec = Me;
exports.getBase64Decoder = Z;
exports.getBase64Encoder = J;
exports.getBaseXCodec = h;
exports.getBaseXDecoder = z;
exports.getBaseXEncoder = p;
exports.getBaseXResliceCodec = Te;
exports.getBaseXResliceCodec = Re;
exports.getBaseXResliceDecoder = b;
exports.getBaseXResliceEncoder = B;
exports.getStringCodec = Et;
exports.getStringDecoder = Q;
exports.getStringEncoder = K;
exports.getUtf8Codec = ct;
exports.getStringCodec = br;
exports.getStringDecoder = re;
exports.getStringEncoder = ee;
exports.getUtf8Codec = dr;
exports.getUtf8Decoder = D;
exports.getUtf8Encoder = v;
exports.padNullCharacters = Me;
exports.removeNullCharacters = O;
exports.padNullCharacters = Ze;
exports.removeNullCharacters = T;

@@ -36,0 +36,0 @@ return exports;

{
"name": "@solana/codecs-strings",
"version": "2.0.0-experimental.47afb90",
"version": "2.0.0-experimental.4c1874d",
"description": "Codecs for strings of different sizes and encodings",

@@ -52,4 +52,4 @@ "exports": {

"dependencies": {
"@solana/codecs-core": "2.0.0-experimental.47afb90",
"@solana/codecs-numbers": "2.0.0-experimental.47afb90"
"@solana/codecs-core": "2.0.0-experimental.4c1874d",
"@solana/codecs-numbers": "2.0.0-experimental.4c1874d"
},

@@ -72,3 +72,3 @@ "devDependencies": {

"prettier": "^2.8",
"tsup": "7.2.0",
"tsup": "^8.0.1",
"typescript": "^5.2.2",

@@ -75,0 +75,0 @@ "version-from-git": "^1.1.1",

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

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

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