Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@center-inc/api-client

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@center-inc/api-client - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

dist/cjs/index.js.map

4

dist/cjs/index.js

@@ -9,2 +9,3 @@ "use strict";

const axios_1 = __importDefault(require("axios"));
const address_1 = require("@ethersproject/address");
exports.DEFAULT_BASE_URL = 'https://api.center.dev';

@@ -16,5 +17,6 @@ /**

renderAssetPreset({ network, address, tokenId, preset, }) {
return axios_1.default.get(`${this.request.config.BASE}/v1/${network}/${address}/${tokenId}/${preset}`);
const checksumAddress = (0, address_1.getAddress)(address);
return axios_1.default.get(`${this.request.config.BASE}/v1/${network}/${checksumAddress}/${tokenId}/${preset}`);
}
}
exports.FullCenterClient = FullCenterClient;
import { CenterClient } from './gen';
import axios from 'axios';
import { getAddress } from '@ethersproject/address';
export const DEFAULT_BASE_URL = 'https://api.center.dev';

@@ -9,4 +10,5 @@ /**

renderAssetPreset({ network, address, tokenId, preset, }) {
return axios.get(`${this.request.config.BASE}/v1/${network}/${address}/${tokenId}/${preset}`);
const checksumAddress = getAddress(address);
return axios.get(`${this.request.config.BASE}/v1/${network}/${checksumAddress}/${tokenId}/${preset}`);
}
}
{
"author": "Omar Bohsali <omar@center.app>",
"name": "@center-inc/api-client",
"version": "0.4.2",
"version": "0.4.3",
"description": "api client for center.dev",

@@ -10,2 +11,3 @@ "main": "./dist/cjs/index.js",

"homepage": "https://center.dev",
"repository": "center-inc/monorepo",
"keywords": [

@@ -21,4 +23,3 @@ "nft",

"scripts": {
"prebuild": "rm -rf dist",
"build": "yarn build:esm && yarn build:cjs",
"build": "yarn codegen && yarn build:esm && yarn build:cjs",
"build:esm": "tsc",

@@ -30,16 +31,15 @@ "build:cjs": "tsc --module commonjs --outdir dist/cjs",

},
"author": "Omar Bohsali <omar@center.app>",
"devDependencies": {
"form-data": "4.x",
"cross-env": "^7.0.3",
"openapi-typescript-codegen": "^0.20.1"
},
"peerDependencies": {
"@ethersproject/address": "^5.6.0",
"axios": "^0.26.1"
},
"dependencies": {
"cross-env": "5.0.5",
"url-join": "^5.0.0",
"whatwg-fetch": "^3.6.2"
},
"gitHead": "c04bed90852f2a69754f737d0d9a1dccc96c4f03"
"@ethersproject/address": "^5.6.0",
"form-data": "^4.0.0",
"url-join": "^5.0.0"
}
}

@@ -1,2 +0,2 @@

# `center-inc/api-client`
# `@center-inc/api-client`

@@ -3,0 +3,0 @@ API client for the center.dev API.

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