package.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "_from": "compute-scroll-into-view@^1.0.20",
  3. "_id": "compute-scroll-into-view@1.0.20",
  4. "_inBundle": false,
  5. "_integrity": "sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==",
  6. "_location": "/compute-scroll-into-view",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "range",
  10. "registry": true,
  11. "raw": "compute-scroll-into-view@^1.0.20",
  12. "name": "compute-scroll-into-view",
  13. "escapedName": "compute-scroll-into-view",
  14. "rawSpec": "^1.0.20",
  15. "saveSpec": null,
  16. "fetchSpec": "^1.0.20"
  17. },
  18. "_requiredBy": [
  19. "/scroll-into-view-if-needed"
  20. ],
  21. "_resolved": "https://registry.npmmirror.com/compute-scroll-into-view/-/compute-scroll-into-view-1.0.20.tgz",
  22. "_shasum": "1768b5522d1172754f5d0c9b02de3af6be506a43",
  23. "_spec": "compute-scroll-into-view@^1.0.20",
  24. "_where": "E:\\qinduan\\mallbackinfrontend\\node_modules\\scroll-into-view-if-needed",
  25. "author": {
  26. "name": "Cody Olsen"
  27. },
  28. "browserify": {
  29. "transform": [
  30. "loose-envify"
  31. ]
  32. },
  33. "bugs": {
  34. "url": "https://github.com/scroll-into-view/compute-scroll-into-view/issues"
  35. },
  36. "bundleDependencies": false,
  37. "bundlesize": [
  38. {
  39. "path": "./umd/compute-scroll-into-view.min.js",
  40. "maxSize": "3 kB",
  41. "compression": "none"
  42. }
  43. ],
  44. "deprecated": false,
  45. "description": "The engine that powers scroll-into-view-if-needed",
  46. "devDependencies": {
  47. "@sanity/semantic-release-preset": "^2.0.2",
  48. "husky": "^8.0.2",
  49. "jest": "^29.3.1",
  50. "jest-junit": "^15.0.0",
  51. "jest-puppeteer": "^6.1.1",
  52. "lint-staged": "^13.0.4",
  53. "microbundle": "^0.15.1",
  54. "prettier": "^2.8.0",
  55. "prettier-plugin-packagejson": "^2.3.0",
  56. "puppeteer": "^19.3.0",
  57. "rimraf": "^3.0.2",
  58. "serve": "^14.1.2",
  59. "typescript": "^4.9.3"
  60. },
  61. "exports": {
  62. ".": {
  63. "types": "./typings/index.d.ts",
  64. "source": "./src/index.ts",
  65. "import": "./dist/index.mjs",
  66. "require": "./dist/index.js",
  67. "default": "./dist/index.mjs"
  68. },
  69. "./package.json": "./package.json"
  70. },
  71. "files": [
  72. "dist",
  73. "typings",
  74. "umd/compute-scroll-into-view.min.js",
  75. "umd/compute-scroll-into-view.min.js.map"
  76. ],
  77. "homepage": "https://scroll-into-view.dev",
  78. "husky": {
  79. "hooks": {
  80. "pre-commit": "lint-staged"
  81. }
  82. },
  83. "keywords": [
  84. "if-needed",
  85. "scroll",
  86. "scroll-into-view",
  87. "scroll-into-view-if-needed",
  88. "scrollIntoView",
  89. "scrollIntoViewIfNeeded",
  90. "scrollMode",
  91. "typescript"
  92. ],
  93. "license": "MIT",
  94. "lint-staged": {
  95. "*.{js,ts,tsx,json,md}": "prettier --write"
  96. },
  97. "main": "dist/index.js",
  98. "module": "dist/index.mjs",
  99. "name": "compute-scroll-into-view",
  100. "prettier": {
  101. "semi": false,
  102. "singleQuote": true
  103. },
  104. "repository": {
  105. "type": "git",
  106. "url": "git+https://github.com/scroll-into-view/compute-scroll-into-view.git"
  107. },
  108. "scripts": {
  109. "build": "npm run build:dist && npm run build:umd",
  110. "build:dist": "microbundle -f cjs,es",
  111. "build:umd": "microbundle -f umd -o umd",
  112. "prebuild": "rimraf 'dist' 'umd'",
  113. "prepublishOnly": "npm run build",
  114. "test": "jest -c integration/jest.config.js",
  115. "typecheck": "tsc --noEmit"
  116. },
  117. "sideEffects": false,
  118. "source": "src/index.ts",
  119. "typings": "typings/index.d.ts",
  120. "umd:main": "umd/compute-scroll-into-view.min.js",
  121. "version": "1.0.20"
  122. }