2012-11-25 22:59:31 +04:00
|
|
|
{
|
2013-08-04 17:42:12 +04:00
|
|
|
"title": "html2canvas",
|
|
|
|
"name": "html2canvas",
|
|
|
|
"description": "Screenshots with JavaScript",
|
2019-05-26 01:54:41 +03:00
|
|
|
"main": "dist/html2canvas.js",
|
|
|
|
"module": "dist/html2canvas.esm.js",
|
|
|
|
"typings": "dist/types/index.d.ts",
|
2018-07-06 18:03:14 +03:00
|
|
|
"browser": "dist/html2canvas.js",
|
2022-01-01 18:08:48 +03:00
|
|
|
"version": "1.4.0",
|
2013-08-04 17:42:12 +04:00
|
|
|
"author": {
|
|
|
|
"name": "Niklas von Hertzen",
|
|
|
|
"email": "niklasvh@gmail.com",
|
2017-08-08 19:50:31 +03:00
|
|
|
"url": "https://hertzen.com"
|
2013-08-04 17:42:12 +04:00
|
|
|
},
|
|
|
|
"engines": {
|
2019-04-13 09:17:23 +03:00
|
|
|
"node": ">=8.0.0"
|
2013-08-04 17:42:12 +04:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git@github.com:niklasvh/html2canvas.git"
|
|
|
|
},
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/niklasvh/html2canvas/issues"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2019-04-08 00:24:17 +03:00
|
|
|
"@babel/cli": "^7.4.3",
|
|
|
|
"@babel/core": "^7.4.3",
|
|
|
|
"@babel/preset-env": "^7.4.3",
|
|
|
|
"@babel/preset-flow": "^7.0.0",
|
2021-07-11 15:25:22 +03:00
|
|
|
"@rollup/plugin-commonjs": "^19.0.0",
|
|
|
|
"@rollup/plugin-json": "^4.1.0",
|
|
|
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
|
|
"@rollup/plugin-typescript": "^8.2.1",
|
2019-05-26 01:54:41 +03:00
|
|
|
"@types/chai": "^4.1.7",
|
2021-07-11 15:25:22 +03:00
|
|
|
"@types/express": "^4.17.13",
|
2019-05-26 01:54:41 +03:00
|
|
|
"@types/glob": "^7.1.1",
|
2021-07-11 15:25:22 +03:00
|
|
|
"@types/jest": "^26.0.24",
|
2021-07-13 13:48:18 +03:00
|
|
|
"@types/jest-image-snapshot": "^4.3.1",
|
2021-05-08 13:32:03 +03:00
|
|
|
"@types/karma": "^6.3.0",
|
2021-07-11 15:25:22 +03:00
|
|
|
"@types/mocha": "^8.2.3",
|
|
|
|
"@types/node": "^16.3.1",
|
|
|
|
"@types/platform": "^1.3.4",
|
2019-05-26 01:54:41 +03:00
|
|
|
"@types/promise-polyfill": "^6.0.3",
|
2021-07-11 15:25:22 +03:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.28.2",
|
|
|
|
"@typescript-eslint/parser": "^4.28.2",
|
2019-04-09 07:56:22 +03:00
|
|
|
"appium-ios-simulator": "^3.10.0",
|
2019-04-08 00:24:17 +03:00
|
|
|
"babel-eslint": "^10.0.1",
|
|
|
|
"babel-loader": "^8.0.5",
|
2020-08-08 10:37:50 +03:00
|
|
|
"babel-plugin-add-module-exports": "^1.0.2",
|
2019-04-08 00:24:17 +03:00
|
|
|
"babel-plugin-dev-expression": "^0.2.1",
|
2021-08-13 12:45:42 +03:00
|
|
|
"base64-arraybuffer": "1.0.1",
|
2021-07-11 15:25:22 +03:00
|
|
|
"body-parser": "^1.19.0",
|
2017-08-08 19:50:31 +03:00
|
|
|
"chai": "4.1.1",
|
2019-04-07 22:49:10 +03:00
|
|
|
"chromeless": "^1.5.2",
|
2021-07-11 15:25:22 +03:00
|
|
|
"cors": "^2.8.5",
|
|
|
|
"es6-promise": "^4.2.8",
|
|
|
|
"eslint": "^7.30.0",
|
|
|
|
"eslint-config-prettier": "^8.3.0",
|
|
|
|
"eslint-plugin-prettier": "3.4.0",
|
2021-05-08 13:32:03 +03:00
|
|
|
"express": "^4.17.1",
|
2017-08-28 16:27:39 +03:00
|
|
|
"filenamify-url": "1.0.0",
|
2019-05-26 01:54:41 +03:00
|
|
|
"glob": "7.1.3",
|
2018-07-06 17:55:59 +03:00
|
|
|
"html2canvas-proxy": "1.0.1",
|
2021-07-11 15:25:22 +03:00
|
|
|
"jest": "^27.0.6",
|
2021-07-13 13:48:18 +03:00
|
|
|
"jest-image-snapshot": "^4.5.1",
|
2020-08-08 10:37:50 +03:00
|
|
|
"jquery": "^3.5.1",
|
2019-04-07 09:07:52 +03:00
|
|
|
"js-polyfills": "^0.1.42",
|
2021-05-08 13:32:03 +03:00
|
|
|
"karma": "^6.3.2",
|
|
|
|
"karma-chrome-launcher": "^3.1.0",
|
2019-04-07 09:07:52 +03:00
|
|
|
"karma-edge-launcher": "^0.4.2",
|
2021-05-08 13:32:03 +03:00
|
|
|
"karma-firefox-launcher": "^2.1.0",
|
2019-04-07 09:07:52 +03:00
|
|
|
"karma-ie-launcher": "^1.0.0",
|
2021-05-08 13:32:03 +03:00
|
|
|
"karma-junit-reporter": "^2.0.1",
|
|
|
|
"karma-mocha": "^2.0.1",
|
2020-04-15 08:03:04 +03:00
|
|
|
"karma-safarinative-launcher": "^1.1.0",
|
2019-04-07 09:07:52 +03:00
|
|
|
"karma-sauce-launcher": "^2.0.2",
|
2021-07-11 15:25:22 +03:00
|
|
|
"mocha": "^9.0.2",
|
2020-04-15 08:03:04 +03:00
|
|
|
"node-simctl": "^5.3.0",
|
2021-07-11 15:25:22 +03:00
|
|
|
"platform": "^1.3.6",
|
|
|
|
"prettier": "^2.3.2",
|
2017-12-03 12:07:10 +03:00
|
|
|
"replace-in-file": "^3.0.0",
|
2021-07-11 15:25:22 +03:00
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
"rollup": "^2.53.1",
|
|
|
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
2019-04-07 22:49:10 +03:00
|
|
|
"serve-index": "^1.9.1",
|
2017-08-08 19:50:31 +03:00
|
|
|
"slash": "1.0.0",
|
2020-08-08 11:45:26 +03:00
|
|
|
"standard-version": "^8.0.2",
|
2021-07-11 15:25:22 +03:00
|
|
|
"ts-jest": "^27.0.3",
|
|
|
|
"ts-loader": "^8.3.0",
|
|
|
|
"ts-node": "^10.1.0",
|
|
|
|
"tslib": "^2.3.0",
|
|
|
|
"typescript": "^4.3.5",
|
|
|
|
"uglify-js": "^3.13.10",
|
|
|
|
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
|
|
"webpack": "^4.46.0",
|
2021-05-08 13:32:03 +03:00
|
|
|
"webpack-cli": "^3.3.12",
|
|
|
|
"yargs": "^17.0.1"
|
2013-08-04 17:42:12 +04:00
|
|
|
},
|
|
|
|
"scripts": {
|
2019-05-26 01:54:41 +03:00
|
|
|
"prebuild": "rimraf dist/ && rimraf build/ && mkdirp dist && mkdirp build",
|
|
|
|
"build": "tsc --module commonjs && rollup -c rollup.config.ts && npm run build:create-reftest-list && npm run build:testrunner && npm run build:minify",
|
|
|
|
"build:testrunner": "rollup -c tests/rollup.config.ts",
|
|
|
|
"build:minify": "uglifyjs --compress --comments /^!/ -o dist/html2canvas.min.js --mangle -- dist/html2canvas.js",
|
2019-04-13 09:17:23 +03:00
|
|
|
"build:reftest-result-list": "ts-node scripts/create-reftest-result-list.ts",
|
2019-05-26 01:54:41 +03:00
|
|
|
"build:create-reftest-list": "ts-node scripts/create-reftest-list.ts tests/reftests/ignore.txt build/reftests.ts",
|
2019-04-13 09:17:23 +03:00
|
|
|
"build:reftest-preview": "webpack --config www/webpack.config.js",
|
2019-04-07 22:49:10 +03:00
|
|
|
"release": "standard-version",
|
2019-05-26 01:54:41 +03:00
|
|
|
"format": "prettier --write \"{src,www/src,tests,scripts}/**/*.ts\"",
|
2021-07-11 15:25:22 +03:00
|
|
|
"lint": "eslint src/**/*.ts --max-warnings 0",
|
2019-05-26 01:54:41 +03:00
|
|
|
"test": "npm run lint && npm run unittest && npm run karma",
|
2019-09-25 13:37:59 +03:00
|
|
|
"unittest": "jest",
|
2021-07-13 13:48:18 +03:00
|
|
|
"reftests-diff": "mkdirp tmp/snapshots && jest --roots=tests --testMatch=**/reftest-diff.ts",
|
2021-05-08 13:32:03 +03:00
|
|
|
"karma": "ts-node tests/karma",
|
2019-05-26 01:54:41 +03:00
|
|
|
"watch": "rollup -c rollup.config.ts -w",
|
|
|
|
"watch:unittest": "mocha --require ts-node/register --watch-extensions ts -w src/**/__tests__/*.ts",
|
2021-05-08 13:32:03 +03:00
|
|
|
"start": "ts-node tests/server --port=8080 --cors=8081"
|
2013-08-04 17:42:12 +04:00
|
|
|
},
|
2017-08-08 19:50:31 +03:00
|
|
|
"homepage": "https://html2canvas.hertzen.com",
|
2017-07-29 05:07:42 +03:00
|
|
|
"license": "MIT",
|
|
|
|
"dependencies": {
|
2021-08-13 12:45:42 +03:00
|
|
|
"css-line-break": "2.0.1",
|
|
|
|
"text-segmentation": "^1.0.2"
|
2017-07-29 05:07:42 +03:00
|
|
|
}
|
2013-05-29 18:53:47 +04:00
|
|
|
}
|