Skip to content

Commit

Permalink
🤖 npm prerelease beta
Browse files Browse the repository at this point in the history
  • Loading branch information
mintbaseteam committed Mar 7, 2024
1 parent ffbd4ba commit 2d9f703
Show file tree
Hide file tree
Showing 19 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": true,
"version": "0.5.6-beta.0",
"version": "0.5.6-beta-prerelease.0",
"packages": [
"packages/*"
]
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mintbase-js/auth",
"version": "0.5.5-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.0",
"description": "Wallet and auth functions for Mintbase JS SDK",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mintbase-js/data",
"version": "0.5.5-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.0",
"description": "Query wrappers for Mintbase JS SDK",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mintbase-js/react",
"version": "0.5.5-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.0",
"description": "React app tools for Mintbase JS SDK",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/rpc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mintbase-js/rpc",
"version": "0.5.5-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.0",
"description": "NEAR RPC interactions for Mintbase JS SDK",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mintbase-js/sdk",
"version": "0.5.5-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.0",
"description": "Core functions for Mintbase JS SDK",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/src/batchChangeCreators/batchChangeCreators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export const batchChangeCreators = (
): NearContractCall<BatchChangeMintersArgsResponse> => {
const { addCreators = [], removeCreators = [], contractAddress = mbjs.keys.contractAddress } = args;

if (!contractAddress) {
throw new Error(ERROR_MESSAGES.CONTRACT_ADDRESS);
}
if (!contractAddress) {
throw new Error(ERROR_MESSAGES.CONTRACT_ADDRESS);
}

if (!isStoreV2(contractAddress)) {
throw new Error(ERROR_MESSAGES.ONLY_V2);
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/src/batchChangeMinters/batchChangeMinters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export const batchChangeMinters = (
): NearContractCall<BatchChangeMintersArgsResponse> => {
const { addMinters = [], removeMinters = [], contractAddress = mbjs.keys.contractAddress } = args;

if (!contractAddress) {
throw new Error(ERROR_MESSAGES.CONTRACT_ADDRESS);
}
if (!contractAddress) {
throw new Error(ERROR_MESSAGES.CONTRACT_ADDRESS);
}

if (!isStoreV1(contractAddress)) {
throw new Error(ERROR_MESSAGES.ONLY_V1);
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/lockMetadata/lockMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export const lockMetadata = (
},
methodName: TOKEN_METHOD_NAMES.LOCK_METADATA,
gas: GAS,
deposit: "1",
deposit: '1',
};
};
6 changes: 3 additions & 3 deletions packages/sdk/src/mint/mint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export const mint = (
noReference = false,
} = args;

if (!contractAddress) {
throw new Error(ERROR_MESSAGES.CONTRACT_ADDRESS);
}
if (!contractAddress) {
throw new Error(ERROR_MESSAGES.CONTRACT_ADDRESS);
}

if (!isStoreV1(contractAddress)) {
throw new Error(ERROR_MESSAGES.ONLY_V1);
Expand Down
12 changes: 6 additions & 6 deletions packages/sdk/src/updateMetadata/updateMetadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ describe('updateMetadata method tests', () => {
const args = updateMetadata({
contractAddress: contractAddress,
metadataId: '1',
metadata: {reference: "foo", media: "bar"},
metadata: { reference: 'foo', media: 'bar' },
});

expect(args).toEqual({
contractAddress: contractAddress,
methodName: TOKEN_METHOD_NAMES.UPDATE_METADATA,
args: {
metadata_id: '1',
metadata: {reference: "foo", media: "bar"},
metadata: { reference: 'foo', media: 'bar' },
},
deposit: '1',
gas: GAS,
Expand All @@ -32,8 +32,8 @@ describe('updateMetadata method tests', () => {
expect(() => {
updateMetadata({
contractAddress: contractAddress,
metadataId: "1",
metadata: { media: "foo" },
metadataId: '1',
metadata: { media: 'foo' },
});
}).toThrow(ERROR_MESSAGES.NO_REFERENCE);
});
Expand All @@ -42,8 +42,8 @@ describe('updateMetadata method tests', () => {
expect(() => {
updateMetadata({
contractAddress: contractAddress,
metadataId: "1",
metadata: { reference: "foo" },
metadataId: '1',
metadata: { reference: 'foo' },
});
}).toThrow(ERROR_MESSAGES.NO_MEDIA);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/updateMetadata/updateMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ export const updateMetadata = (
},
methodName: TOKEN_METHOD_NAMES.UPDATE_METADATA,
gas: GAS,
deposit: "1",
deposit: '1',
};
};
4 changes: 2 additions & 2 deletions packages/storage/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mintbase-js/storage",
"version": "0.5.5-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.0",
"description": "Storage functions for Mintbase JS SDK",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/src/uploads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type ReferenceObject = {
category?: string;
tags?: string[];
extra?: Trait[];
history?: string[]
history?: string[];
}

type Trait = {
Expand Down
4 changes: 2 additions & 2 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mintbase-js/testing",
"version": "0.5.5-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.0",
"description": "Integration test suite and testing utils",
"main": "lib/index.js",
"scripts": {
Expand All @@ -21,7 +21,7 @@
"dependencies": {
"@google-cloud/firestore": "^6.8.0",
"@google-cloud/secret-manager": "^4.2.2",
"@mintbase-js/auth": "^0.5.5-beta-prerelease.0",
"@mintbase-js/auth": "^0.5.6-beta-prerelease.0",
"@mintbase-js/sdk": "^0.3.2-upgrade-packages-3378beb.0",
"graphql-request": "^5.2.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/wallet/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mintbase-js/wallet",
"version": "0.5.5-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.0",
"description": "Mintbase Wallet",
"main": "lib/index.js",
"keywords": [
Expand Down

0 comments on commit 2d9f703

Please sign in to comment.