UNPKG

@standard-crypto/farcaster-js-neynar

Version:

A tool for interacting with Farcaster via Neynar APIs.

111 lines 3.98 kB
{ "name": "@standard-crypto/farcaster-js-neynar", "version": "2.0.2", "description": "A tool for interacting with Farcaster via Neynar APIs.", "main": "./dist/commonjs/index.js", "type": "module", "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/commonjs/index.d.ts", "default": "./dist/commonjs/index.js" } }, "./v1": { "import": { "types": "./dist/esm/v1/index.d.ts", "default": "./dist/esm/v1/index.js" }, "require": { "types": "./dist/commonjs/v1/index.d.ts", "default": "./dist/commonjs/v1/index.js" } }, "./v2": { "import": { "types": "./dist/esm/v2/index.d.ts", "default": "./dist/esm/v2/index.js" }, "require": { "types": "./dist/commonjs/v2/index.d.ts", "default": "./dist/commonjs/v2/index.js" } } }, "types": "./dist/commonjs/index.d.ts", "repository": { "url": "https://github.com/standard-crypto/farcaster-js", "type": "git" }, "homepage": "https://github.com/standard-crypto/farcaster-js", "bugs": "https://github.com/standard-crypto/farcaster-js/issues", "author": "Kevin Ayling", "license": "MIT", "dependencies": { "viem": "^1.16.2" }, "peerDependencies": { "axios": "~1.6.0" }, "devDependencies": { "@openapitools/openapi-generator-cli": "^2.7.0", "@types/chai": "^4.3.9", "@types/chai-as-promised": "^7.1.5", "@types/prompts": "^2.4.7", "@types/qrcode": "^1", "axios": "~1.6.0", "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "dotenv": "^16.3.1", "markdown-magic": "^2.6.1", "mocha": "^10.2.0", "openapi-types": "^12.1.3", "openapi-typescript": "^6.7.0", "qrcode": "^1.5.3", "ts-mocha": "^10.0.0", "ts-node": "^10.9.1", "type-fest": "^4.8.3", "typedoc": "^0.25.4", "typedoc-plugin-markdown": "^3.17.1" }, "files": [ "package.json", "README.md", "dist/**" ], "scripts": { "build": "yarn run -T tshy", "clean": "yarn clean:dist && yarn clean:generated", "clean:dist": "rm -rf dist", "clean:generated": "rm -rf src/v1/openapi/generated && rm -rf src/v2/openapi/generated", "cz": "yarn run -T cz", "fixup-imports": "yarn run -T fix-esm-import-path src && sed -i.bak 's|models\"|models/index.js\"|' src/v1/openapi/generated/index.ts src/v2/openapi/generated/index.ts && rm src/**/generated/index.ts.bak", "generate": "yarn run generate:openapi", "generate:docs": "md-magic --path './README.md' && typedoc --plugin typedoc-plugin-markdown", "generate:openapi": "yarn run generate:openapi-axios && yarn run generate:openapi-typescript && yarn run fixup-imports", "generate:openapi-axios": "openapi-generator-cli generate --global-property apis,models,supportingFiles=index.ts:api.ts:configuration.ts:base.ts:common.ts -i src/v1/openapi/spec.yaml -g typescript-axios -o src/v1/openapi/generated --config openapi-generator-config.json && openapi-generator-cli generate --global-property apis,models,supportingFiles=index.ts:api.ts:configuration.ts:base.ts:common.ts -i src/v2/openapi/spec.yaml -g typescript-axios -o src/v2/openapi/generated --config openapi-generator-config.json", "generate:openapi-typescript": "openapi-typescript src/v1/openapi/spec.yaml -o src/v1/openapi/generated/schema.d.ts && openapi-typescript src/v2/openapi/spec.yaml -o src/v2/openapi/generated/schema.d.ts", "test": "yarn test:integration", "test:integration": "mocha", "publish": "yarn npm publish" }, "keywords": [ "farcaster" ], "publishConfig": { "access": "public" }, "tshy": { "exports": { "./package.json": "./package.json", ".": "./src/index.ts", "./v1": "./src/v1/index.ts", "./v2": "./src/v2/index.ts" } } }