UNPKG

@enaio-client/communication-library

Version:

The Communication Library facilitates secure cross-origin communication between the enaio® webclient and dashlets/modal dialogs, using window.postMessage(). This library streamlines the process, ensuring compatibility with the enaio® client, and offers an

68 lines (67 loc) 2.52 kB
{ "name": "@enaio-client/communication-library", "version": "2.0.4", "description": "The Communication Library facilitates secure cross-origin communication between the enaio® webclient and dashlets/modal dialogs, using window.postMessage(). This library streamlines the process, ensuring compatibility with the enaio® client, and offers an effortless solution for managing postMessage communication, enhancing the usability and interoperability of your applications.", "main": "dist/communicationLibrary.cjs", "module": "dist/module.mjs", "repository": { "type": "git", "url": "https://git.optimal-systems.org/team-dodo/enaio-client-communication.git" }, "source": "./src/communicationLibrary.js", "scripts": { "test": "karma start ./karma.conf.cjs --browsers Chrome", "test-ci": "npx karma start ./karma.ci.conf.cjs --watch=false --source-map=false", "build": "parcel build", "copy-demos": "npm run copy-modal-dialog && npm run copy-dashlet", "copy-modal-dialog": "shx cp ./dist/module.mjs* ../enaio-webclient-demo-modal-dialog-addon/src/js/", "copy-dashlet": "shx cp ./dist/module.mjs* ../enaio-webclient-demo-dashlet/src/js/", "watch": "nodemon --watch src -e js --exec \"npm run build && npm run copy-demos\"", "set-latest": "node set-latest.mjs", "prebuild": "node --experimental-modules inject-version.mjs && npm run set-latest" }, "type": "module", "keywords": [ "optimal-systems", "enaio", "communication-library" ], "author": "Optimal Systems", "license": "ISC", "files": [ "dist/", "LICENSE", "README.md", "CHANGELOG.md", "package.json" ], "engines": { "node": ">=12.0.0" }, "devDependencies": { "@babel/core": "^7.23.7", "@babel/preset-env": "^7.23.8", "babel-loader": "^9.1.3", "copy-webpack-plugin": "^12.0.2", "cpy-cli": "^5.0.0", "karma": "^6.4.2", "karma-chrome-launcher": "^3.2.0", "karma-coverage": "2.2.0", "karma-jasmine": "^5.1.0", "karma-jasmine-html-reporter": "^2.1.0", "karma-jasmine-matchers": "^3.8.3", "karma-junit-reporter": "^1.2.0", "karma-mocha-reporter": "2.2.5", "karma-nunit2-reporter": "0.3.0", "karma-webpack": "^5.0.0", "nodemon": "^3.1.0", "parcel": "^2.12.0", "puppeteer": "^22.0.0", "shx": "^0.3.4", "webpack": "^5.89.0", "webpack-cli": "^5.1.4" }, "dependencies": { "@parcel/watcher": "^2.4.1" } }