UNPKG

@api-helper/core

Version:

根据 Swagger 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。

111 lines 3.1 kB
{ "name": "@api-helper/core", "version": "3.3.3", "description": "根据 Swagger 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。", "module": "es/index.js", "browser": "api-helper-core.js", "main": "index.js", "typings": "index.d.ts", "files": [ "es", "lib", "index.js", "index.d.ts", "api-helper-core.js", "README.md" ], "engines": { "node": ">=14.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/ztz2/api-helper.git" }, "keywords": [ "api", "json", "yapi", "share", "schema", "typing", "codegen", "swagger", "openapi", "compile", "transpile", "interface", "api-helper", "typescript" ], "author": { "name": "ztz2", "email": "448941273@qq.com", "url": "https://github.com/ztz2" }, "bugs": { "url": "https://github.com/ztz2/api-helper/issues" }, "homepage": "https://github.com/ztz2/api-helper#readme", "dependencies": { "@apidevtools/json-schema-ref-parser": "^11.7.2", "browserify-fs": "^1.0.0", "change-case": "^3.0.2", "lodash": "^4.17.21", "path-browserify": "^1.0.1", "qs": "^5.2.1", "url": "^0.11.0", "uuid": "^9.0.0" }, "devDependencies": { "@babel/core": "^7.21.4", "@babel/preset-env": "^7.21.4", "@babel/preset-typescript": "^7.21.5", "@babel/runtime": "^7.13.10", "@types/fs-extra": "^5.0.4", "@types/jest": "29.2.4", "@types/json-schema": "^7.0.11", "@types/lodash": "^4.14.195", "@types/node": "^10.12.10", "@types/prettier": "^2.6.1", "@types/qs": "^6.9.7", "@types/uuid": "^9.0.1", "@typescript-eslint/eslint-plugin": "^5.54.0", "@typescript-eslint/parser": "^5.0.0", "babel-jest": "^29.4.3", "babel-loader": "^9.1.2", "concurrently": "^8.0.1", "consola": "^2.3.0", "eslint": "^7.32.0", "fs-extra": "^7.0.1", "jest": "^29.4.3", "lebab": "^3.2.3", "lint-staged": "^10", "openapi-types": "^12.1.0", "prettier": "^3.0.3", "shx": "^0.3.4", "terser-webpack-plugin": "^5.3.7", "ts-jest": "29.0.3", "ts-loader": "^9.4.2", "tsc-alias": "^1.8.6", "tsconfig-paths-jest": "^0.0.1", "typescript": "^4.4.4", "webpack": "^5.81.0", "webpack-cli": "^5.0.2", "webpack-sources": "^3.2.3" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "license": "MIT", "scripts": { "build": "npm run lint && npm run test && npm run clean && npm run build:es && npm run build:node && npm run build:web", "build:es": "tsc --project ./tsconfig.es.json && tsc-alias -p tsconfig.es.alias.json", "build:node": "tsc --project ./tsconfig.node.json && tsc-alias -p tsconfig.node.alias.json", "build:web": "webpack -c ./webpack.config.js", "clean": "shx rm -rf es && shx rm -rf lib && shx rm -rf index.js && shx rm -rf index.d.ts && shx rm -rf api-helper-core.js", "lint": "eslint src/*.ts", "test": "jest", "test:update": "npm run test -- -u" } }