UNPKG

@volverjs/data

Version:

Repository pattern implementation with a tiny HttpClient based on Fetch API.

133 lines 3.16 kB
{ "name": "@volverjs/data", "type": "module", "version": "2.0.4", "description": "Repository pattern implementation with a tiny HttpClient based on Fetch API.", "author": "8 Wave S.r.l.", "license": "MIT", "homepage": "https://github.com/volverjs/data", "repository": { "type": "git", "url": "https://github.com/volverjs/data" }, "bugs": { "url": "https://github.com/volverjs/data/issues" }, "keywords": [ "repository", "http-client", "http", "url-builder", "fetch" ], "sideEffects": false, "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "node": "./node/index.js" }, "./src/*": "./src/*", "./dist/*": "./dist/*", "./hash": { "types": "./dist/Hash.d.ts", "import": "./dist/Hash.js" }, "./http-client": { "types": "./dist/HttpClient.d.ts", "import": "./dist/HttpClient.js" }, "./repository": { "types": "./dist/Repository.d.ts" }, "./repository-http": { "types": "./dist/RepositoryHttp.d.ts", "import": "./dist/RepositoryHttp.js" }, "./url-builder": { "types": "./dist/UrlBuilder.d.ts", "import": "./dist/UrlBuilder.js" }, "./vue": { "types": "./dist/vue/index.d.ts", "import": "./dist/vue/index.js" } }, "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "typesVersions": { "*": { "*": [ "dist/index.d.ts" ], "hash": [ "dist/Hash.d.ts" ], "http-client": [ "dist/HttpClient.d.ts" ], "repository": [ "dist/Repository.d.ts" ], "repository-http": [ "dist/RepositoryHttp.d.ts" ], "url-builder": [ "dist/UrlBuilder.d.ts" ], "vue": [ "dist/vue/index.d.ts" ] } }, "files": [ "*.d.ts", "dist", "node", "src" ], "engines": { "node": ">= 16.x" }, "dependencies": { "abort-controller": "^3.0.0", "ky": "^1.11.0", "node-fetch": "^3.3.2", "qs": "^6.14.0", "web-streams-polyfill": "^4.2.0" }, "optionalDependencies": { "vue": "^3.5.22" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", "@nabla/vite-plugin-eslint": "^2.0.6", "@types/node": "^24.7.0", "@types/qs": "^6.14.0", "@vitejs/plugin-vue": "^6.0.1", "@vue/test-utils": "^2.4.6", "copy": "^0.3.2", "eslint": "^9.37.0", "globals": "^16.4.0", "happy-dom": "^19.0.2", "typescript": "^5.9.3", "vite": "^7.1.9", "vite-plugin-externalize-deps": "^0.10.0", "vitest": "^3.2.4", "vitest-fetch-mock": "^0.4.5", "vue": "^3.5.22", "vue-tsc": "^3.1.1" }, "scripts": { "lint": "eslint", "lint:fix": "eslint --fix", "type-check": "tsc --noEmit", "dev": "vite build --watch", "build": "vite build && vue-tsc --declaration --emitDeclarationOnly && copy src/**/*.d.ts dist", "test": "pnpm run test-vitest", "test-vitest": "vitest run", "test-vitest-watch": "vitest watch", "credits": "npx @opengovsg/credits-generator" } }