@dwmt/comlink
Advanced tools
Comparing version 1.1.11 to 1.1.12
@@ -1,5 +0,29 @@ | ||
import { inherits } from 'util'; | ||
import Cookies from 'js-cookie'; | ||
import axios from 'axios'; | ||
var inherits; | ||
if (typeof Object.create === 'function'){ | ||
inherits = function inherits(ctor, superCtor) { | ||
// implementation from standard node.js 'util' module | ||
ctor.super_ = superCtor; | ||
ctor.prototype = Object.create(superCtor.prototype, { | ||
constructor: { | ||
value: ctor, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
}; | ||
} else { | ||
inherits = function inherits(ctor, superCtor) { | ||
ctor.super_ = superCtor; | ||
var TempCtor = function () {}; | ||
TempCtor.prototype = superCtor.prototype; | ||
ctor.prototype = new TempCtor(); | ||
ctor.prototype.constructor = ctor; | ||
}; | ||
} | ||
var inherits$1 = inherits; | ||
function Storage() {} | ||
@@ -27,3 +51,3 @@ | ||
inherits(CookieStorage, Storage); | ||
inherits$1(CookieStorage, Storage); | ||
@@ -46,3 +70,3 @@ CookieStorage.prototype.getItem = function (key) { | ||
inherits(NodeStorage, Storage); | ||
inherits$1(NodeStorage, Storage); | ||
@@ -856,3 +880,3 @@ NodeStorage.prototype.getItem = function (key) { | ||
var version = "1.1.11"; | ||
var version = "1.1.12"; | ||
@@ -859,0 +883,0 @@ var Comlink = { |
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var util = require('util'); | ||
var Cookies = _interopDefault(require('js-cookie')); | ||
var axios = _interopDefault(require('axios')); | ||
var Cookies = require('js-cookie'); | ||
var axios = require('axios'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var Cookies__default = /*#__PURE__*/_interopDefaultLegacy(Cookies); | ||
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios); | ||
function Storage() {} | ||
@@ -28,3 +31,3 @@ | ||
function CookieStorage() { | ||
this._cookie = Cookies; | ||
this._cookie = Cookies__default['default']; | ||
} | ||
@@ -255,3 +258,3 @@ | ||
constructor(options = {}) { | ||
this._axios = axios; | ||
this._axios = axios__default['default']; | ||
this._ws = WebSocket; | ||
@@ -450,3 +453,3 @@ this._dialects = {}; | ||
const resp = await axios.get(url, options.axios || {}); | ||
const resp = await axios__default['default'].get(url, options.axios || {}); | ||
await channel.headerHandler(resp.headers); | ||
@@ -485,3 +488,3 @@ return resp; | ||
const resp = await axios.post(url, data, options.axios || {}); | ||
const resp = await axios__default['default'].post(url, data, options.axios || {}); | ||
await channel.headerHandler(resp.headers); | ||
@@ -514,3 +517,3 @@ return resp; | ||
const resp = await axios.put(url, data, options.axios || {}); | ||
const resp = await axios__default['default'].put(url, data, options.axios || {}); | ||
await channel.headerHandler(resp.headers); | ||
@@ -543,3 +546,3 @@ return resp; | ||
const resp = await axios.delete(url, options.axios || {}); | ||
const resp = await axios__default['default'].delete(url, options.axios || {}); | ||
await channel.headerHandler(resp.headers); | ||
@@ -638,3 +641,3 @@ return resp; | ||
const url = channel.protocol + channel.uri + '/'; | ||
const req = await axios.post(url, options.axios || {}); | ||
const req = await axios__default['default'].post(url, options.axios || {}); | ||
return req; | ||
@@ -662,3 +665,3 @@ } else { | ||
const url = channel.protocol + channel.uri + '/'; | ||
const req = await axios.post(url, options.axios || {}); | ||
const req = await axios__default['default'].post(url, options.axios || {}); | ||
return req; | ||
@@ -665,0 +668,0 @@ } else { |
196
package.json
{ | ||
"name": "@dwmt/comlink", | ||
"version": "1.1.11", | ||
"description": "Communication library for lazy enthusiasts", | ||
"main": "dist/Comlink.js", | ||
"module": "dist/Comlink.esm.js", | ||
"scripts": { | ||
"prepublish": "npx bili --format esm --format cjs", | ||
"dev": "npx bili --watch --format esm --format cjs", | ||
"test": "npx mocha --require @babel/register test/**/*.test.js", | ||
"test:watch": "npx mocha --require @babel/register test/**/*.test.js --watch", | ||
"coverage": "npx nyc npm run test", | ||
"report-coverage": "npx nyc --reporter=lcov npm run test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dwmt/comlink.git" | ||
}, | ||
"keywords": [ | ||
"comlink", | ||
"communication", | ||
"http", | ||
"https", | ||
"rest", | ||
"ws", | ||
"websockets", | ||
"channels" | ||
], | ||
"contributors": [ | ||
{ | ||
"name": "Lajos Kovács", | ||
"email": "lajoskvcs@icloud.com", | ||
"url": "https://lajoskvcs.com" | ||
}, | ||
{ | ||
"name": "Gergely Szabó", | ||
"email": "gergely0116@gmail.com", | ||
"url": "https://github.com/Baxi0116" | ||
} | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/dwmt/comlink/issues" | ||
}, | ||
"homepage": "https://github.com/dwmt/comlink#readme", | ||
"dependencies": { | ||
"@dwmt/loader": "^1.0.0", | ||
"@rollup/plugin-json": "^4.0.3", | ||
"axios": "^0.19.2", | ||
"isomorphic-ws": "^4.0.1", | ||
"js-cookie": "^2.2.1", | ||
"ws": "^7.3.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.10.1", | ||
"@babel/preset-env": "^7.10.1", | ||
"@babel/register": "^7.10.1", | ||
"babel-plugin-dynamic-import-node": "^2.3.3", | ||
"bili": "^4.10.0", | ||
"chai": "^4.2.0", | ||
"codecov": "^3.7.0", | ||
"eslint": "^7.1.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"mocha": "^7.2.0", | ||
"nyc": "^15.0.1", | ||
"sinon": "^9.0.2" | ||
}, | ||
"babel": { | ||
"plugins": [ | ||
[ | ||
"dynamic-import-node" | ||
] | ||
], | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
] | ||
] | ||
} | ||
"name": "@dwmt/comlink", | ||
"version": "1.1.12", | ||
"description": "Communication library for lazy enthusiasts", | ||
"main": "dist/Comlink.js", | ||
"module": "dist/Comlink.esm.js", | ||
"scripts": { | ||
"prepublishOnly": "npm run build", | ||
"build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js", | ||
"build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs", | ||
"build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es", | ||
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife", | ||
"watch": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --watch", | ||
"test": "npx mocha --require @babel/register test/**/*.test.js", | ||
"test:watch": "npx mocha --require @babel/register test/**/*.test.js --watch", | ||
"coverage": "npx nyc npm run test", | ||
"report-coverage": "npx nyc --reporter=lcov npm run test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dwmt/comlink.git" | ||
}, | ||
"keywords": [ | ||
"comlink", | ||
"communication", | ||
"http", | ||
"https", | ||
"rest", | ||
"ws", | ||
"websockets", | ||
"channels" | ||
], | ||
"contributors": [ | ||
{ | ||
"name": "Lajos Kovács", | ||
"email": "lajoskvcs@icloud.com", | ||
"url": "https://lajoskvcs.com" | ||
}, | ||
{ | ||
"name": "Gergely Szabó", | ||
"email": "gergely0116@gmail.com", | ||
"url": "https://github.com/Baxi0116" | ||
} | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/dwmt/comlink/issues" | ||
}, | ||
"homepage": "https://github.com/dwmt/comlink#readme", | ||
"dependencies": { | ||
"@dwmt/loader": "^1.0.0", | ||
"axios": "^0.19.2", | ||
"isomorphic-ws": "^4.0.1", | ||
"js-cookie": "^2.2.1", | ||
"ws": "^7.3.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.11.1", | ||
"@babel/plugin-syntax-dynamic-import": "^7.8.3", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/preset-flow": "^7.10.4", | ||
"@babel/register": "^7.10.5", | ||
"@rollup/plugin-alias": "^3.1.1", | ||
"@rollup/plugin-babel": "^5.2.0", | ||
"@rollup/plugin-commonjs": "^15.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-replace": "^2.3.3", | ||
"@types/js-cookie": "^2.2.6", | ||
"@types/ws": "^7.2.6", | ||
"@vue/cli-plugin-babel": "^4.5.4", | ||
"@vue/cli-service": "^4.5.4", | ||
"babel-plugin-dynamic-import-node": "^2.3.3", | ||
"babel-plugin-istanbul": "^6.0.0", | ||
"chai": "^4.2.0", | ||
"codecov": "^3.7.2", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^7.7.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"minimist": "^1.2.5", | ||
"mocha": "^8.1.1", | ||
"nyc": "^15.1.0", | ||
"rollup": "^2.26.3", | ||
"rollup-plugin-node-polyfills": "^0.2.1", | ||
"rollup-plugin-terser": "^7.0.0", | ||
"rollup-plugin-vue": "^5.1.9", | ||
"sinon": "^9.0.3", | ||
"vue-template-compiler": "^2.6.11" | ||
}, | ||
"babel": { | ||
"plugins": [ | ||
[ | ||
"dynamic-import-node" | ||
] | ||
], | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
429402
5
17
2468
35
2
1
- Removed@rollup/plugin-json@^4.0.3
- Removed@rollup/plugin-json@4.1.0(transitive)
- Removed@rollup/pluginutils@3.1.0(transitive)
- Removed@types/estree@0.0.39(transitive)
- Removedestree-walker@1.0.1(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedrollup@2.79.2(transitive)
Updatedws@^7.3.1