UNPKG

penpal

Version:

A promise-based library for communicating with iframes via postMessage.

91 lines (90 loc) 2.75 kB
{ "name": "penpal", "version": "6.2.1", "description": "A promise-based library for communicating with iframes via postMessage.", "author": "Aaron Hardy <aaron@aaronhardy.com>", "license": "MIT", "bugs": { "url": "https://github.com/Aaronius/penpal/issues" }, "repository": { "type": "git", "url": "git+https://github.com/Aaronius/penpal.git" }, "keywords": [ "iframe", "postMessage", "promise" ], "main": "es5/index.js", "module": "lib/index.js", "types": "lib/index.d.ts", "scripts": { "clean": "rimraf lib es5 dist", "build:lib": "tsc", "build:es5": "babel ./src --out-dir ./es5 --extensions '.ts'", "build:dist": "rollup --config rollup.config.js && terser dist/penpal.js -o dist/penpal.min.js -m --source-map", "build:analysis": "node ./scripts/filesize dist/penpal.min.js", "build": "npm-run-all clean build:lib build:es5 build:dist build:analysis", "lint": "eslint **/*.js", "format": "prettier --write \"**/*.{json,ts,js,md,html,babelrc,eslintrc}\"", "test": "npm-run-all clean runTests", "test:watch": "npm-run-all clean runTests:watch", "test:sauce": "npm-run-all build 'runTests -- --sauce'", "runTests": "node ./scripts/test.js", "runTests:watch": "npm run runTests -- --watch", "prepublishOnly": "npm-run-all format lint test build", "prepare": "husky install" }, "lint-staged": { "**/*.js": [ "eslint --cache --fix" ], "**/*.{json,ts,js,md,html,babelrc,eslintrc}": [ "prettier --write" ] }, "browserslist": [ "last 2 Chrome version", "last 2 Firefox version", "last 2 Safari version", "last 2 Edge version" ], "files": [ "lib", "es5", "dist" ], "devDependencies": { "@babel/cli": "^7.2.3", "@babel/core": "^7.3.4", "@babel/preset-env": "^7.3.4", "@babel/preset-typescript": "^7.8.3", "@metahub/karma-rollup-preprocessor": "^6.0.0", "@rollup/plugin-typescript": "^4.0.0", "connect": "^3.6.6", "eslint": "^7.25.0", "eslint-config-prettier": "^6.10.1", "eslint-plugin-import": "^2.14.0", "filesize": "^6.1.0", "husky": "^6.0.0", "jasmine-core": "^3.8.0", "karma": "^5.0.2", "karma-babel-preprocessor": "^8.0.0-beta.0", "karma-chrome-launcher": "^3.1.0", "karma-firefox-launcher": "^1.1.0", "karma-jasmine": "^3.1.1", "karma-sauce-launcher": "^4.1.3", "lint-staged": "^11.0.0", "npm-run-all": "^4.1.5", "prettier": "2.0.4", "rimraf": "^3.0.2", "rollup": "^2.6.1", "rollup-plugin-babel": "^4.3.2", "rollup-plugin-typescript": "^1.0.1", "serve-static": "^1.13.2", "terser": "^4.6.11", "typescript": "^3.8.3", "yargs": "^15.3.1" } }