@metaplex-foundation/mpl-candy-guard
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -260,4 +260,9 @@ declare type ErrorWithCode = Error & { | ||
} | ||
export declare class InvalidAccountVersionError extends Error { | ||
readonly code: number; | ||
readonly name: string; | ||
constructor(); | ||
} | ||
export declare function errorFromCode(code: number): MaybeErrorWithCode; | ||
export declare function errorFromName(name: string): MaybeErrorWithCode; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InvalidMintAuthorityError = exports.AllocationGuardNotEnabledError = exports.AllocationLimitReachedError = exports.AllocationNotInitializedError = exports.ExceededProgramListSizeError = exports.UnauthorizedProgramFoundError = exports.DuplicatedMintLimitIdError = exports.DuplicatedGroupLabelError = exports.UnlockNotEnabledError = exports.ThawNotEnabledError = exports.ExceededMaximumFreezePeriodError = exports.FreezeEscrowAlreadyExistsError = exports.MissingFreezePeriodError = exports.FreezeNotInitializedError = exports.FreezeGuardNotEnabledError = exports.MissingFreezeInstructionError = exports.AddressNotAuthorizedError = exports.MaximumRedeemedAmountError = exports.MissingNftError = exports.InvalidNftCollectionError = exports.AllowedMintLimitReachedError = exports.AllowedListNotEnabledError = exports.MissingAllowedListProofError = exports.AddressNotFoundInAllowedListError = exports.InvalidMintTimeError = exports.AfterEndDateError = exports.GatewayTokenInvalidError = exports.MissingRequiredSignatureError = exports.TokenTransferFailedError = exports.NotEnoughTokensError = exports.TokenBurnFailedError = exports.NotEnoughSOLError = exports.MintNotLiveError = exports.MintNotLastTransactionError = exports.CollectionUpdateAuthorityKeyMismatchError = exports.MissingCollectionAccountsError = exports.CollectionKeyMismatchError = exports.InstructionNotFoundError = exports.CandyMachineEmptyError = exports.ExceededLengthError = exports.GroupNotFoundError = exports.RequiredGroupLabelNotFoundError = exports.NumericalOverflowErrorError = exports.MissingRemainingAccountError = exports.UninitializedError = exports.IncorrectOwnerError = exports.DataIncrementLimitExceededError = exports.PublicKeyMismatchError = exports.DeserializationErrorError = exports.InvalidAccountSizeError = void 0; | ||
exports.errorFromName = exports.errorFromCode = exports.InstructionBuilderFailedError = void 0; | ||
exports.errorFromName = exports.errorFromCode = exports.InvalidAccountVersionError = exports.InstructionBuilderFailedError = void 0; | ||
const createErrorFromCodeLookup = new Map(); | ||
@@ -670,2 +670,15 @@ const createErrorFromNameLookup = new Map(); | ||
createErrorFromNameLookup.set('InstructionBuilderFailed', () => new InstructionBuilderFailedError()); | ||
class InvalidAccountVersionError extends Error { | ||
constructor() { | ||
super('Invalid account version'); | ||
this.code = 0x17a3; | ||
this.name = 'InvalidAccountVersion'; | ||
if (typeof Error.captureStackTrace === 'function') { | ||
Error.captureStackTrace(this, InvalidAccountVersionError); | ||
} | ||
} | ||
} | ||
exports.InvalidAccountVersionError = InvalidAccountVersionError; | ||
createErrorFromCodeLookup.set(0x17a3, () => new InvalidAccountVersionError()); | ||
createErrorFromNameLookup.set('InvalidAccountVersion', () => new InvalidAccountVersionError()); | ||
function errorFromCode(code) { | ||
@@ -672,0 +685,0 @@ const createError = createErrorFromCodeLookup.get(code); |
{ | ||
"name": "@metaplex-foundation/mpl-candy-guard", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"programVersion": "1.0.0", | ||
@@ -11,11 +11,7 @@ "description": "MPL Candy Guard JavaScript API. This MPL package is for the current generation of the Candy Guard", | ||
"preversion": "yarn check:publish-ready", | ||
"postversion": "git add package.json && git commit -m \"chore: update $npm_package_name to v$npm_package_version\" && git tag $npm_package_name@$npm_package_version", | ||
"prepublishOnly": "yarn check:publish-ready", | ||
"postpublish": "git push origin && git push origin --tags", | ||
"build:docs": "typedoc", | ||
"build": "rimraf dist && tsc -p tsconfig.json", | ||
"test": "tape dist/test/**/*.test.js", | ||
"test": "CI=1 tape dist/test/**/*.test.js", | ||
"api:gen": "DEBUG='(solita|rustbin):(info|error)' solita", | ||
"amman:start": "amman start", | ||
"amman:stop": "amman stop", | ||
"lint": "eslint \"{src,test}/**/*.ts\" --format stylish", | ||
@@ -22,0 +18,0 @@ "fix:lint": "yarn lint --fix", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
244923
4115
1