Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "comlinkjs", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "", | ||
"main": "comlink.umd.js", | ||
"module": "comlink.es6.js", | ||
"typings": "comlink.d.ts", | ||
"scripts": { | ||
@@ -12,3 +15,3 @@ "test": "npm run linter && npm run unittest", | ||
"mypublish": "npm run build && npm run test && cp README.md package.json dist && npm publish dist", | ||
"build": "rm -rf dist && mkdir dist && npm run compile && npm run mangle_global && npm run minify && cp comlink.ts dist", | ||
"build": "rm -rf dist && mkdir dist && npm run compile && npm run mangle_global && npm run minify", | ||
"compile": "tsc --outDir dist -m none && mv dist/comlink.{,global.}js && tsc --outDir dist -m es2015 && mv dist/comlink.{,es6.}js && tsc -d --outDir dist -m umd && mv dist/comlink.{,umd.}js", | ||
@@ -15,0 +18,0 @@ "mangle_global": "sed -i .bak 's!exports.Comlink!self.Comlink!' dist/comlink.global.js && sed -i .bak 's!^.*\"__esModule\".*$!!' dist/comlink.global.js", |
# Comlink | ||
An tiny RPC library that works on windows, iframes, WebWorkers and | ||
A tiny RPC library that works on windows, iframes, WebWorkers and | ||
ServiceWorkers. | ||
@@ -35,3 +35,3 @@ | ||
async function init() { | ||
// Note the usage of `await`. | ||
// Note the usage of `await`: | ||
const app = await new api.App(); | ||
@@ -101,3 +101,3 @@ | ||
### `expose: (rootObj, endpoint)` | ||
### `expose(rootObj, endpoint)` | ||
@@ -104,0 +104,0 @@ `expose` listens for RPC messages on `endpoint` and applies the operations to |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52053
10
719