{ "name": "@suaveplan/payment-provider-square", "version": "0.1.0", "type": "module", "sideEffects": false, "description": "Universal Square Payments API adapter for @suaveplan/payment. Ships SquareProvider (implements PaymentProvider with literal name \"square\"), SquareConfig (extends ApiKeyConfig with locationId, sandbox, apiVersion, randomId), and the Square-specific payment/refund mappers. Built on the @suaveplan/payment-providers foundation (httpRequest, composeAbortSignal, PAYMENT_PROVIDER_CODES, PaymentProviderError).", "license": "MIT", "author": "Suaveplan Team", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./square/square": { "import": { "types": "./dist/square/square.d.ts", "default": "./dist/square/square.js" }, "require": { "types": "./dist/square/square.d.ts", "default": "./dist/square/square.js" } }, "./types/config": { "import": { "types": "./dist/types/config.d.ts", "default": "./dist/types/config.js" }, "require": { "types": "./dist/types/config.d.ts", "default": "./dist/types/config.js" } }, "./mapping/payment": { "import": { "types": "./dist/mapping/payment.d.ts", "default": "./dist/mapping/payment.js" }, "require": { "types": "./dist/mapping/payment.d.ts", "default": "./dist/mapping/payment.js" } }, "./mapping/refund": { "import": { "types": "./dist/mapping/refund.d.ts", "default": "./dist/mapping/refund.js" }, "require": { "types": "./dist/mapping/refund.d.ts", "default": "./dist/mapping/refund.js" } } }, "scripts": { "build": "vite build", "test": "vitest run --passWithNoTests", "test:watch": "vitest", "test:coverage": "vitest run --coverage --passWithNoTests", "lint": "bunx biome check src/", "lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/", "format": "bunx biome format --write --max-diagnostics 500 src/", "check": "bunx biome check --write --unsafe --max-diagnostics 500 src/", "typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json", "docs:check": "bun run ../../../../scripts/docs-check.ts ." }, "dependencies": { "@suaveplan/payment": "workspace:^", "@suaveplan/payment-providers": "workspace:^", "tslib": "catalog:build" }, "devDependencies": { "@suaveplan/testing": "workspace:^", "@types/node": "catalog:", "@vitest/coverage-istanbul": "catalog:testing", "typescript": "catalog:", "vite": "catalog:build", "vite-plugin-dts": "catalog:build", "vitest": "catalog:testing" }, "publishConfig": { "access": "public" }, "files": [ "dist", "src", "README.md" ] }