peer-data
Advanced tools
Comparing version 1.2.10 to 1.2.11
/// <reference types="socket.io-client" /> | ||
import 'socket.io-client'; | ||
import { Signaling } from './signaling'; | ||
@@ -4,0 +3,0 @@ import { SignalingEvent } from './event'; |
@@ -1,2 +0,2 @@ | ||
import 'socket.io-client'; | ||
import * as io from 'socket.io-client'; | ||
import { EventDispatcher } from './../dispatcher/dispatcher'; | ||
@@ -3,0 +3,0 @@ import { AppEventType } from './../event-type'; |
/// <reference types="socket.io-client" /> | ||
import 'socket.io-client'; | ||
import { Signaling } from './signaling'; | ||
@@ -4,0 +3,0 @@ import { SignalingEvent } from './event'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("socket.io-client"); | ||
var io = require("socket.io-client"); | ||
var dispatcher_1 = require("./../dispatcher/dispatcher"); | ||
@@ -5,0 +5,0 @@ var event_type_1 = require("./../event-type"); |
{ | ||
"name": "peer-data", | ||
"version": "1.2.10", | ||
"version": "1.2.11", | ||
"description": "PeerData - library for files, media streaming/sharing using WebRTC", | ||
"scripts": { | ||
"build": "yarn run build:lib & yarn run build:umd", | ||
"build": "yarn run build:lib & yarn run build:es && yarn run build:umd", | ||
"build:lib": "tsc --outDir lib --module commonjs", | ||
"build:es": "tsc --outDir es --module es6", | ||
"build:umd": "yarn run build:es && rollup --config && dts-bundle --name dist/bundle --main es --outputAsModuleFolder", | ||
"build:umd": "NODE_ENV=development rollup -c -i es/index.js -o dist/web-component.js", | ||
"build:umd:min": "NODE_ENV=production rollup -c -i es/index.js -o dist/web-component.min.js", | ||
"clean": "rimraf dist es lib coverage", | ||
@@ -62,2 +63,3 @@ "typecheck": "tsc --noEmit", | ||
"codecov": "^2.2.0", | ||
"cross-env": "^5.0.1", | ||
"dts-bundle": "^0.7.2", | ||
@@ -69,3 +71,2 @@ "jest": "^20.0.4", | ||
"rollup": "^0.43.0", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
@@ -72,0 +73,0 @@ "rollup-plugin-node-globals": "^1.1.0", |
import resolve from "rollup-plugin-node-resolve"; | ||
import globals from "rollup-plugin-node-globals"; | ||
import builtins from "rollup-plugin-node-builtins"; | ||
import commonjs from "rollup-plugin-commonjs"; | ||
import uglify from "rollup-plugin-uglify"; | ||
export default { | ||
var env = process.env.NODE_ENV; | ||
var config = { | ||
format: "umd", | ||
moduleName: "peer-data", | ||
entry: "es/index.js", | ||
dest: "dist/peer-data.js", | ||
exports: "named", | ||
plugins: [ | ||
resolve({ jsnext: true }), | ||
resolve({ | ||
module: true, | ||
jsnext: true, | ||
main: true, | ||
browser: true | ||
}), | ||
globals(), | ||
builtins(), | ||
commonjs(), | ||
uglify() | ||
builtins() | ||
] | ||
}; | ||
if (env === "production") { | ||
config.plugins.push( | ||
uglify({ | ||
compress: { | ||
pure_getters: true, | ||
unsafe: true, | ||
unsafe_comps: true, | ||
warnings: false | ||
} | ||
}) | ||
); | ||
} | ||
export default config; |
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"rootDir": "src", | ||
@@ -6,0 +5,0 @@ "outDir": ".code", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
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
1700
0
234680
127
1