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 2b4a491 commit 4b9020e
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 33 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-prerelease.0",
"version": "0.5.6-beta-prerelease.1",
"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.6-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.1",
"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.6-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.1",
"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.6-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.1",
"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.6-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.1",
"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.6-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.1",
"description": "Core functions for Mintbase JS SDK",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
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.6-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.1",
"description": "Storage functions for Mintbase JS SDK",
"main": "lib/index.js",
"scripts": {
Expand Down
18 changes: 9 additions & 9 deletions packages/storage/src/node-uploads.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mbjs } from '@mintbase-js/sdk';
import FormData from "form-data";
import FormData from 'form-data';

import {
ANON_USER_WARNING,
Expand All @@ -17,7 +17,7 @@ import { ArweaveResponse } from './types';
export const uploadBuffer = async (
buffer: Buffer,
mimeType: string,
fileName: string
fileName: string,
): Promise<ArweaveResponse> => {

if (mbjs.keys.apiKey == MINTBASE_API_ANON_USER) {
Expand All @@ -29,20 +29,20 @@ export const uploadBuffer = async (
}

const formData = new FormData();
formData.append("file", buffer, {
formData.append('file', buffer, {
contentType: mimeType,
filename: fileName,
});

try {
const res = await fetch(ARWEAVE_SERVICE_HOST, {
method: "POST",
headers: {
"mb-api-key": mbjs.keys.apiKey || "anon",
method: 'POST',
headers: {
'mb-api-key': mbjs.keys.apiKey || 'anon',
...formData.getHeaders(),
},
body: formData as unknown as BodyInit,
redirect: "follow",
},
body: formData as unknown as BodyInit,
redirect: 'follow',
});

if (res.status !== 200) {
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type ReferenceObject = {
category?: string;
tags?: string[];
extra?: Trait[];
history?: string[]
history?: string[];
}

export 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.6-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.1",
"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.6-beta-prerelease.0",
"@mintbase-js/auth": "^0.5.6-beta-prerelease.1",
"@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.6-beta-prerelease.0",
"version": "0.5.6-beta-prerelease.1",
"description": "Mintbase Wallet",
"main": "lib/index.js",
"keywords": [
Expand Down

0 comments on commit 4b9020e

Please sign in to comment.