{ "name": "@uploadcare/api-emulator", "version": "6.25.1", "description": "An in-process, stateful emulator of the Uploadcare Upload API and CDN, for tests that need real request/response round-trips without the network.", "keywords": [ "uploadcare", "upload", "api", "emulator", "mock", "testing", "msw" ], "publishConfig": { "access": "public" }, "type": "module", "sideEffects": false, "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./listen": { "types": "./dist/listen.d.ts", "default": "./dist/listen.js" }, "./browser": { "types": "./dist/browser.d.ts", "default": "./dist/browser.js" }, "./node": { "types": "./dist/node.d.ts", "default": "./dist/node.js" }, "./msw": { "types": "./dist/msw.d.ts", "default": "./dist/msw.js" } }, "files": [ "dist", "README.md", "LICENSE" ], "engines": { "node": ">=20" }, "scripts": { "prepack": "cp ../../LICENSE ./LICENSE", "build": "tsc && vite build", "pretest": "vite build", "test": "vitest --run", "test:coverage": "vitest --run --coverage", "test:contract": "CONTRACT_BASE_URL=https://upload.uploadcare.com vitest --run --project node test/contract.test.ts", "tsc": "tsc --noEmit", "lint": "oxlint src test scripts", "lint:fix": "oxlint src test scripts --fix", "format": "oxfmt .", "format:check": "oxfmt --check .", "spec:refresh": "node scripts/spec-refresh.ts", "spec:check": "node scripts/spec-check.ts" }, "repository": { "type": "git", "url": "git+https://github.com/uploadcare/uploadcare-js-api-clients.git" }, "author": "Uploadcare", "license": "MIT", "bugs": { "url": "https://github.com/uploadcare/uploadcare-js-api-clients/issues" }, "homepage": "https://github.com/uploadcare/uploadcare-js-api-clients#readme", "peerDependencies": { "@mswjs/interceptors": "^0.45.7", "msw": "^3.0.2" }, "peerDependenciesMeta": { "@mswjs/interceptors": { "optional": true }, "msw": { "optional": true } }, "devDependencies": { "@mswjs/interceptors": "^0.45.7", "@vitest/browser-playwright": "^5.0.5", "@vitest/coverage-v8": "^5.0.5", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "fast-check": "^4.10.2", "msw": "^3.0.2", "oxfmt": "^0.75.0", "oxlint": "^1.68.0", "oxlint-tsgolint": "^0.23.0", "playwright": "^1.63.0", "vite": "^8.3.5", "vite-plugin-dts": "^5.1.2", "vitest": "^5.0.5", "yaml": "^2.9.1" } }