UNPKG

anaf-ts-sdk

Version:

Complete TypeScript SDK for Romanian ANAF API -E-Factura, Company checks

151 lines 4.06 kB
{ "name": "anaf-ts-sdk", "version": "1.1.0", "description": "Complete TypeScript SDK for Romanian ANAF API -E-Factura, Company checks", "main": "dist/index.js", "types": "dist/index.d.ts", "module": "dist/esm/index.js", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/index.js" } }, "files": [ "dist/**/*", "README.md", "CHANGELOG.md", "LICENSE" ], "repository": { "type": "git", "url": "git+https://github.com/florin-szilagyi/efactura-anaf-ts-sdk.git" }, "homepage": "https://github.com/florin-szilagyi/efactura-anaf-ts-sdk#readme", "bugs": { "url": "https://github.com/florin-szilagyi/efactura-anaf-ts-sdk/issues" }, "keywords": [ "anaf", "efactura", "e-factura", "romania", "romanian", "ubl", "cius-ro", "oauth2", "certificate", "usb-token", "smartcard", "pkcs11", "typescript", "sdk", "api", "invoice", "xml", "validation", "pdf", "conversion", "tax", "vat", "fiscal" ], "author": { "name": "Florin Szilagyi", "email": "florin.szilagyi@example.com", "url": "https://github.com/florin-szilagyi" }, "license": "MIT", "engines": { "node": ">=14.0.0", "npm": ">=6.0.0" }, "dependencies": { "date-fns": "^3.6.0", "qs": "^6.11.2", "xml2js": "^0.6.2", "xmlbuilder2": "^3.1.1" }, "devDependencies": { "@types/express": "^4.17.21", "@types/jest": "^29.5.11", "@types/node": "^20.10.5", "@types/qs": "^6.9.15", "@types/xml2js": "^0.4.14", "@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/parser": "^6.15.0", "dotenv": "^16.3.1", "eslint": "^8.56.0", "eslint-config-prettier": "^10.1.5", "eslint-import-resolver-typescript": "^4.3.5", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest": "^27.6.0", "eslint-plugin-prettier": "^5.1.2", "express": "^4.18.2", "jest": "^29.7.0", "prettier": "^3.1.1", "rimraf": "^6.0.1", "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "typescript": "^5.3.3" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "funding": { "type": "github", "url": "https://github.com/sponsors/florin-szilagyi" }, "jest": { "preset": "ts-jest", "testEnvironment": "node", "testMatch": [ "**/tests/**/*.test.ts", "**/?(*.)+(spec|test).ts" ], "collectCoverageFrom": [ "src/**/*.ts", "!src/**/*.d.ts", "!src/**/__tests__/**", "!src/**/*.test.ts" ], "coverageDirectory": "coverage", "coverageReporters": [ "text", "lcov", "html" ], "coverageThreshold": { "global": { "branches": 30, "functions": 30, "lines": 30, "statements": 30 } } }, "scripts": { "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:types", "build:cjs": "tsc -p tsconfig.json", "build:esm": "tsc -p tsconfig.esm.json", "build:types": "tsc -p tsconfig.types.json", "clean": "rimraf dist", "dev": "tsc -p tsconfig.json --watch", "lint": "eslint 'src/**/*.{ts,tsx}' --fix", "lint:check": "eslint 'src/**/*.{ts,tsx}'", "format": "prettier --write 'src/**/*.{ts,tsx,js,json,md}'", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "test:ci": "jest tests/*.unit.test.ts --coverage --ci --watchAll=false", "test:unit": "jest tests/*.unit.test.ts --verbose", "test:integration": "jest tests/*.integration.test.ts --verbose --runInBand", "test:auth": "jest tests/auth.integration.test.ts --verbose", "test:all": "pnpm run test:unit && pnpm run test:integration", "validate": "pnpm run lint:check && pnpm run lint:check && pnpm run test:ci", "release": "pnpm run validate && pnpm publish", "release:dry": "pnpm run validate && pnpm publish --dry-run" } }