UNPKG

@xapi/xapi

Version:

Communicate over xAPI using JavaScript.

77 lines (76 loc) 2.75 kB
{ "name": "@xapi/xapi", "version": "3.0.2", "description": "Communicate over xAPI using JavaScript.", "main": "dist/XAPI.cjs.js", "module": "dist/XAPI.esm.js", "browser": "dist/XAPI.umd.js", "typings": "dist/types/XAPI.d.ts", "files": [ "dist/**/*" ], "scripts": { "prepublishOnly": "npm run build", "clean": "rimraf ./dist", "build:js": "rollup --config --bundleConfigAsCjs", "build:types": "tsc --emitDeclarationOnly", "build": "npm run clean && npm run build:types && npm run build:js", "format": "prettier --write '**/*.{js,jsx,json,ts,tsx}'", "test": "jest --runInBand && npm run test:edge && npm run test:example:node:require && npm run test:example:node:import", "test:edge": "jest --runInBand --config jest.config.edge.js", "test:unit": "jest --selectProjects dom-axios-unit dom-fetch-unit node-axios-unit node-fetch-unit", "test:int": "jest --selectProjects dom-axios-int dom-fetch-int node-axios-int node-fetch-int --runInBand", "test:format": "prettier --check .", "test:example:node:require": "node ./example/node/require.js", "test:example:node:import": "node --experimental-modules --es-module-specifier-resolution=node ./example/node/import.mjs", "lint": "eslint . --max-warnings=0" }, "repository": { "type": "git", "url": "https://github.com/xapijs/xapi.git" }, "keywords": [ "xapi", "typescript" ], "author": "Christian Cook", "license": "MIT", "bugs": { "url": "https://github.com/xapijs/xapi/issues" }, "homepage": "https://www.xapijs.dev", "funding": "https://github.com/sponsors/CookieCookson", "devDependencies": { "@babel/core": "^7.23.2", "@babel/plugin-transform-optional-chaining": "^7.25.9", "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@edge-runtime/jest-environment": "^3.0.4", "@eslint/js": "^9.15.0", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^28.0.1", "@rollup/plugin-json": "^6.0.1", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-terser": "^0.4.4", "@types/crypto-js": "^4.2.2", "@types/jest": "^29.5.7", "@types/node": "^22.9.1", "crypto-js": "^4.2.0", "dotenv": "^16.3.1", "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "prettier": "^3.0.3", "rimraf": "^6.0.1", "rollup": "^4.3.0", "ts-jest": "^29.1.1", "typescript": "^5.6.3", "typescript-eslint": "^8.15.0", "whatwg-fetch": "^3.6.20" }, "dependencies": { "axios": "^1.6.0" } }