diff --git a/src/create-publish.mts b/src/create-publish.mts index fb8d03e..b3cb680 100644 --- a/src/create-publish.mts +++ b/src/create-publish.mts @@ -129,9 +129,10 @@ const makeDescription = (type: number, desc: string) => { return desc; }; const serialize = (permissions: unknown) => { - if(typeof permissions === 'bigint') { + if(typeof permissions === 'bigint' || typeof permissions === 'number') { return permissions.toString(); } + if(Array.isArray(permissions)) { return permissions .reduce((acc, cur) => acc | cur, BigInt(0))