Comparing version 0.0.4 to 0.0.8
{ | ||
"name": "nft-react", | ||
"version": "0.0.4", | ||
"version": "0.0.8", | ||
"description": "React components for interacting with NFTs", | ||
"main": "./dist/index.js", | ||
"type": "commonjs", | ||
"types": "./dist/index.d.ts", | ||
"exports": "./dist/index.js", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.js", | ||
"types": "./dist/esm/index.d.ts", | ||
"license": "UNLICENSED", | ||
"scripts": { | ||
"prebuild": "rm -rf dist", | ||
"build": "tsc", | ||
"build": "yarn build:esm && yarn build:cjs", | ||
"build:esm": "tsc", | ||
"build:cjs": "tsc --module commonjs --outdir dist/cjs", | ||
"start": "tsc --watch", | ||
"publish": "npm publish", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook", | ||
"sb": "yarn storybook", | ||
"client:gen": "mkdir -p src/client/gen && openapi --input ./openapi.json --output src/client/gen --client axios --name CenterClient --useOptions" | ||
"publish": "npm publish" | ||
}, | ||
@@ -23,6 +20,3 @@ "author": "Omar Bohsali <omar@center.app>", | ||
"@babel/core": "^7.17.8", | ||
"@types/axios": "^0.14.0", | ||
"babel-loader": "^8.2.4", | ||
"form-data": "4.x", | ||
"openapi-typescript-codegen": "^0.20.1", | ||
"typescript": "^4.6.2" | ||
@@ -37,2 +31,3 @@ }, | ||
"dependencies": { | ||
"@center-inc/api-client": "^0.0.7", | ||
"axios": "^0.26.1", | ||
@@ -39,0 +34,0 @@ "cross-env": "5.0.5", |
@@ -0,3 +1,2 @@ | ||
export { NFT } from './NFT' | ||
export { Provider } from './Provider' | ||
export { NFT } from './NFT' | ||
export { CenterContext } from './CenterContext' |
import React from 'react' | ||
import { CenterContext } from '../components/CenterContext' | ||
import { CenterContext } from '../components/Provider' | ||
@@ -4,0 +4,0 @@ export const useCenter = () => { |
@@ -1,5 +0,4 @@ | ||
import { Asset } from './../client/gen/models/Asset' | ||
import type { Asset } from '@center-inc/api-client' | ||
import { useCenter } from './useCenter' | ||
import React from 'react' | ||
import axios from 'axios' | ||
@@ -6,0 +5,0 @@ export const useNFT = ({ |
import { useCenter } from './useCenter' | ||
import React from 'react' | ||
import { Collection } from '../client/gen' | ||
import type { Collection } from '@center-inc/api-client' | ||
@@ -5,0 +5,0 @@ export const useNFTCollection = ({ |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
3
7511
9
14
253
1