package.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "name": "@esri/arcgis-html-sanitizer",
  3. "version": "2.10.0",
  4. "description": "A simple utility to sanitize a string according to ArcGIS supported HTML specification.",
  5. "main": "dist/node/index.js",
  6. "module": "dist/esm/index.js",
  7. "files": [
  8. "dist/**",
  9. "CODE_OF_CONDUCT.md",
  10. "CONTRIBUTING.md",
  11. "LICENSE"
  12. ],
  13. "repository": "https://github.com/Esri/arcgis-html-sanitizer.git",
  14. "bugs": {
  15. "url": "https://github.com/Esri/arcgis-html-sanitizer/issues"
  16. },
  17. "homepage": "https://github.com/Esri/arcgis-html-sanitizer#readme",
  18. "author": "Esri",
  19. "license": "Apache-2.0",
  20. "scripts": {
  21. "build": "rimraf dist && rollup -c && yarn run build:dts",
  22. "build:dts": "tsc -p tsconfig-decl.json --outDir dist/esm && tsc -p tsconfig-decl.json --outDir dist/node",
  23. "lint": "tslint --project tsconfig.json",
  24. "lint:fix": "tslint --project tsconfig.json --fix",
  25. "test": "jest --coverage",
  26. "test:watch": "jest --coverage --watch"
  27. },
  28. "jest": {
  29. "coverageThreshold": {
  30. "global": {
  31. "branches": 100,
  32. "functions": 100,
  33. "lines": 100,
  34. "statements": 100
  35. }
  36. },
  37. "transform": {
  38. "^.+\\.tsx?$": "ts-jest"
  39. },
  40. "testRegex": "(/__tests__/.*|(\\.|/)(test))\\.(jsx?|tsx?)$",
  41. "moduleFileExtensions": [
  42. "ts",
  43. "tsx",
  44. "js",
  45. "jsx",
  46. "json",
  47. "node"
  48. ]
  49. },
  50. "dependencies": {
  51. "lodash.isplainobject": "^4.0.6",
  52. "xss": "^1.0.11"
  53. },
  54. "devDependencies": {
  55. "@rollup/plugin-commonjs": "^21.0.2",
  56. "@rollup/plugin-node-resolve": "^13.1.3",
  57. "@rollup/plugin-replace": "^4.0.0",
  58. "@rollup/plugin-typescript": "^8.3.1",
  59. "@types/jest": "^27.4.1",
  60. "@types/lodash.isplainobject": "^4.0.6",
  61. "jest": "^27.5.1",
  62. "rimraf": "^3.0.2",
  63. "rollup": "^2.70.1",
  64. "rollup-plugin-terser": "^7.0.2",
  65. "ts-jest": "^27.1.3",
  66. "tslint": "^6.1.3",
  67. "tslint-config-prettier": "^1.18.0",
  68. "tslint-config-standard": "^9.0.0",
  69. "typescript": "^4.6.2"
  70. },
  71. "publishConfig": {
  72. "access": "public"
  73. }
  74. }