@enplug/sdk-player
Advanced tools
Comparing version 0.10.18 to 0.11.0-dev.1
@@ -94,6 +94,6 @@ var enplug = | ||
\**********************/ | ||
/*! exports provided: name, version, description, main, typings, scripts, repository, keywords, author, license, bugs, files, homepage, devDependencies, config, dependencies, default */ | ||
/*! exports provided: name, version, description, main, typings, scripts, repository, keywords, author, license, bugs, files, homepage, devDependencies, config, default */ | ||
/***/ (function(module) { | ||
module.exports = JSON.parse("{\"name\":\"@enplug/sdk-player\",\"version\":\"0.10.18\",\"description\":\"Enplug Player SDK\",\"main\":\"./src/index.ts\",\"typings\":\"./src/index.d.ts\",\"scripts\":{\"clean\":\"rimraf dist/ && mkdirp dist\",\"lint\":\"tslint -c tslint.json './src/**/*.ts' -e './**/*.d.ts'\",\"test\":\"karma start test/karma.conf.js\",\"bundle\":\"npm run clean && webpack\",\"bundle:prod\":\"npm run clean && webpack --env.production\",\"start\":\"npm-run-all clean lint test\",\"release\":\"npm run bundle && enplug-release-sdk\",\"release:prod\":\"npm run bundle:prod && enplug-release-sdk\",\"release:dev\":\"npm run bundle && enplug-release-sdk --dev\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/Enplug/sdk.git\"},\"keywords\":[\"Enplug\"],\"author\":\"Enplug\",\"license\":\"ISC\",\"bugs\":{\"url\":\"https://github.com/Enplug/sdk/issues\"},\"files\":[\"src/\",\"dist/\"],\"homepage\":\"https://github.com/Enplug/sdk#readme\",\"devDependencies\":{\"@enplug/scripts\":\"^1.9.1\",\"@types/jasmine\":\"^2.6.0\",\"@types/node\":\"^8.0.45\",\"command-line-args\":\"^4.0.7\",\"es6-shim\":\"^0.35.3\",\"fs\":\"0.0.1-security\",\"inquirer\":\"^6.0.0\",\"jasmine\":\"^3.5.0\",\"jasmine-core\":\"^3.5.0\",\"karma\":\"^5.1.0\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-coverage-istanbul-reporter\":\"^3.0.3\",\"karma-jasmine\":\"^3.3.1\",\"karma-jasmine-html-reporter\":\"^1.5.4\",\"karma-phantomjs-launcher\":\"~1.0.4\",\"karma-phantomjs-shim\":\"~1.5.0\",\"karma-spec-reporter\":\"0.0.31\",\"karma-typescript\":\"~3.0.7\",\"mkdirp\":\"^0.5.1\",\"npm-run-all\":\"^4.1.1\",\"path\":\"^0.12.7\",\"rimraf\":\"^2.6.2\",\"s3\":\"^4.4.0\",\"shelljs\":\"^0.7.8\",\"ts-loader\":\"^6.2.1\",\"tslint\":\"^5.7.0\",\"typescript\":\"^2.9.2\",\"uglifyjs-webpack-plugin\":\"^2.2.0\",\"webpack\":\"^4.41.2\",\"webpack-cli\":\"^3.3.1\"},\"config\":{\"destination\":\"sdk/v1\",\"destinationDev\":\"sdk/dev/\",\"aws\":{\"buckets\":[\"apps.enplug.in\",\"apps.enplug.com\"],\"s3\":{\"cache\":false,\"overwrite\":true,\"region\":\"us-west-2\",\"sslEnabled\":true,\"apiVersion\":\"2016-05-01\",\"params\":{\"ACL\":\"public-read\"}}}},\"dependencies\":{}}"); | ||
module.exports = JSON.parse("{\"name\":\"@enplug/sdk-player\",\"version\":\"0.10.13\",\"description\":\"Enplug Player SDK\",\"main\":\"./src/index.ts\",\"typings\":\"./src/index.d.ts\",\"scripts\":{\"clean\":\"rimraf dist/ && mkdirp dist\",\"lint\":\"tslint -c tslint.json './src/**/*.ts' -e './**/*.d.ts'\",\"test\":\"karma start test/karma.conf.js\",\"bundle\":\"npm run clean && webpack\",\"bundle:prod\":\"npm run clean && webpack --env.production\",\"bundle:staging\":\"npm run clean && webpack --env.staging\",\"start\":\"npm-run-all clean lint test\",\"release:dev\":\"npm run bundle && enplug-release-sdk\",\"release:prod\":\"npm run bundle:prod && enplug-release-sdk\",\"release:staging\":\"npm run bundle:staging && enplug-release-sdk\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/Enplug/sdk.git\"},\"keywords\":[\"Enplug\"],\"author\":\"Enplug\",\"license\":\"ISC\",\"bugs\":{\"url\":\"https://github.com/Enplug/sdk/issues\"},\"files\":[\"src/\",\"dist/\"],\"homepage\":\"https://github.com/Enplug/sdk#readme\",\"devDependencies\":{\"@enplug/scripts\":\"^1.9.1\",\"@types/jasmine\":\"^2.6.0\",\"@types/node\":\"^8.0.45\",\"command-line-args\":\"^4.0.7\",\"es6-shim\":\"^0.35.3\",\"fs\":\"0.0.1-security\",\"inquirer\":\"^6.0.0\",\"jasmine\":\"^3.3.1\",\"jasmine-core\":\"^2.99.1\",\"karma\":\"^1.7.1\",\"karma-chrome-launcher\":\"^2.2.0\",\"karma-jasmine\":\"^1.1.2\",\"karma-phantomjs-launcher\":\"~1.0.4\",\"karma-phantomjs-shim\":\"~1.5.0\",\"karma-spec-reporter\":\"0.0.31\",\"karma-typescript\":\"~3.0.7\",\"mkdirp\":\"^0.5.1\",\"npm-run-all\":\"^4.1.1\",\"path\":\"^0.12.7\",\"rimraf\":\"^2.6.2\",\"s3\":\"^4.4.0\",\"shelljs\":\"^0.7.8\",\"ts-loader\":\"^6.2.1\",\"tslint\":\"^5.7.0\",\"typescript\":\"^2.9.2\",\"uglifyjs-webpack-plugin\":\"^2.2.0\",\"webpack\":\"^4.41.2\",\"webpack-cli\":\"^3.3.1\"},\"config\":{\"destination\":\"sdk/v1\",\"destinationDev\":\"sdk/dev/\",\"aws\":{\"buckets\":[\"dev-apps.enplug.in\",\"apps.enplug.in\",\"apps.enplug.com\"],\"s3\":{\"cache\":false,\"overwrite\":true,\"region\":\"us-west-2\",\"sslEnabled\":true,\"apiVersion\":\"2016-05-01\",\"params\":{\"ACL\":\"public-read\"}}}}}"); | ||
@@ -158,3 +158,3 @@ /***/ }), | ||
clearTimeout(_this.serviceWorkerTimer); | ||
resolve(null); | ||
resolve(); | ||
return; | ||
@@ -165,3 +165,3 @@ } | ||
clearTimeout(_this.serviceWorkerTimer); | ||
resolve(null); | ||
resolve(); | ||
} | ||
@@ -253,9 +253,5 @@ else if (state === 'redundant') { | ||
body.addEventListener('click', function () { | ||
console.log("[Player SDK] Screen was touched (click or touch)."); | ||
console.log("[Player SDK] Screen was touched."); | ||
_this.bridge.send("status" /* AppStatus */, "screen-touched" /* ScreenTouched */); | ||
}, true); | ||
body.addEventListener('keyup', function () { | ||
console.log("[Player SDK] Screen was touched (keyup)."); | ||
_this.bridge.send("status" /* AppStatus */, "screen-touched" /* ScreenTouched */); | ||
}, true); | ||
} | ||
@@ -428,19 +424,5 @@ }; | ||
*/ | ||
Bridge.prototype.getQueryParam = function (key, queryUrl) { | ||
var url = queryUrl || new URL(window.location.href); | ||
var params = url.searchParams; | ||
var legacyParams = new Map(); | ||
// Older browsers don't support searchParams | ||
if (!params && typeof url.search === 'string') { | ||
var searchParams = url.search.replace('?', '').split('&'); | ||
for (var _i = 0, searchParams_1 = searchParams; _i < searchParams_1.length; _i++) { | ||
var param = searchParams_1[_i]; | ||
var paramParts = param.split('='); | ||
legacyParams.set(paramParts[0], paramParts[1]); | ||
} | ||
} | ||
if (params) { | ||
return params.get(key) || ''; | ||
} | ||
return legacyParams.get(key) || ''; | ||
Bridge.prototype.getQueryParam = function (key) { | ||
var params = (new URL(window.location.href)).searchParams; | ||
return params ? params.get(key) : ''; | ||
}; | ||
@@ -734,40 +716,2 @@ /** | ||
/***/ "./src/desktop-alerts.ts": | ||
/*!*******************************!*\ | ||
!*** ./src/desktop-alerts.ts ***! | ||
\*******************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var DesktopAlerts = /** @class */ (function () { | ||
function DesktopAlerts(bridge) { | ||
this.bridge = bridge; | ||
} | ||
DesktopAlerts.prototype.error = function () { | ||
return this.bridge.send("desktopalerts" /* DesktopAlerts */, "error" /* Error */); | ||
}; | ||
DesktopAlerts.prototype.getNext = function () { | ||
return this.bridge.send("desktopalerts" /* DesktopAlerts */, "get-next" /* GetNext */); | ||
}; | ||
DesktopAlerts.prototype.hide = function () { | ||
return this.bridge.send("desktopalerts" /* DesktopAlerts */, "hide" /* Hide */); | ||
}; | ||
DesktopAlerts.prototype.openUrl = function (url) { | ||
return this.bridge.send("desktopalerts" /* DesktopAlerts */, "open-url" /* OpenUrl */); | ||
}; | ||
DesktopAlerts.prototype.ready = function () { | ||
return this.bridge.send("desktopalerts" /* DesktopAlerts */, "ready" /* Ready */); | ||
}; | ||
return DesktopAlerts; | ||
}()); | ||
exports.default = DesktopAlerts; | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
/***/ }), | ||
/***/ "./src/environment/environment.ts": | ||
@@ -784,3 +728,3 @@ /*!****************************************!*\ | ||
exports.environment = { | ||
appsUrl: 'https://apps.enplug.in' | ||
appsUrl: 'https://dev-apps.enplug.in' | ||
}; | ||
@@ -800,3 +744,3 @@ }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ../package.json */ "./package.json"), __webpack_require__(/*! ./app-status */ "./src/app-status.ts"), __webpack_require__(/*! ./assets */ "./src/assets.ts"), __webpack_require__(/*! ./cache */ "./src/cache.ts"), __webpack_require__(/*! ./bridge/cef-bridge */ "./src/bridge/cef-bridge.ts"), __webpack_require__(/*! ./desktop-alerts */ "./src/desktop-alerts.ts"), __webpack_require__(/*! ./bridge/java-bridge */ "./src/bridge/java-bridge.ts"), __webpack_require__(/*! ./notifications */ "./src/notifications.ts"), __webpack_require__(/*! ./player-events */ "./src/player-events.ts"), __webpack_require__(/*! ./play-recorder */ "./src/play-recorder.ts"), __webpack_require__(/*! ./settings */ "./src/settings.ts"), __webpack_require__(/*! ./social */ "./src/social.ts"), __webpack_require__(/*! ./bridge/web-bridge */ "./src/bridge/web-bridge.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, pkg, app_status_1, assets_1, cache_1, cef_bridge_1, desktop_alerts_1, java_bridge_1, notifications_1, player_events_1, play_recorder_1, settings_1, social_1, web_bridge_1) { | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ../package.json */ "./package.json"), __webpack_require__(/*! ./app-status */ "./src/app-status.ts"), __webpack_require__(/*! ./assets */ "./src/assets.ts"), __webpack_require__(/*! ./cache */ "./src/cache.ts"), __webpack_require__(/*! ./bridge/cef-bridge */ "./src/bridge/cef-bridge.ts"), __webpack_require__(/*! ./bridge/java-bridge */ "./src/bridge/java-bridge.ts"), __webpack_require__(/*! ./notifications */ "./src/notifications.ts"), __webpack_require__(/*! ./player-events */ "./src/player-events.ts"), __webpack_require__(/*! ./play-recorder */ "./src/play-recorder.ts"), __webpack_require__(/*! ./settings */ "./src/settings.ts"), __webpack_require__(/*! ./social */ "./src/social.ts"), __webpack_require__(/*! ./bridge/web-bridge */ "./src/bridge/web-bridge.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, pkg, app_status_1, assets_1, cache_1, cef_bridge_1, java_bridge_1, notifications_1, player_events_1, play_recorder_1, settings_1, social_1, web_bridge_1) { | ||
"use strict"; | ||
@@ -826,3 +770,2 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var cache = new cache_1.default(bridge); | ||
var desktopAlerts = new desktop_alerts_1.default(bridge); | ||
var events = new player_events_1.default(bridge); | ||
@@ -840,3 +783,2 @@ var notifications = new notifications_1.default(bridge); | ||
cache: cache, | ||
desktopAlerts: desktopAlerts, | ||
notifications: notifications, | ||
@@ -843,0 +785,0 @@ off: events.off.bind(events), |
{ | ||
"name": "@enplug/sdk-player", | ||
"version": "0.10.18", | ||
"version": "0.11.0-dev.1", | ||
"description": "Enplug Player SDK", | ||
"main": "./src/index.ts", | ||
"typings": "./src/index.d.ts", | ||
"scripts": { | ||
@@ -12,7 +10,8 @@ "clean": "rimraf dist/ && mkdirp dist", | ||
"bundle": "npm run clean && webpack", | ||
"bundle:prod": "npm run clean && webpack --env.production", | ||
"bundle:prod": "npm run clean && webpack --env.production && npm run generateTypings", | ||
"start": "npm-run-all clean lint test", | ||
"release": "npm run bundle && enplug-release-sdk", | ||
"release:prod": "npm run bundle:prod && enplug-release-sdk", | ||
"release:dev": "npm run bundle && enplug-release-sdk --dev" | ||
"release:dev": "npm run bundle && enplug-release-sdk --dev", | ||
"generateTypings": "tsc --project tsconfig.types.json" | ||
}, | ||
@@ -32,4 +31,5 @@ "repository": { | ||
"files": [ | ||
"src/", | ||
"dist/" | ||
"dist/", | ||
"types/src/", | ||
"index.d.ts" | ||
], | ||
@@ -40,3 +40,3 @@ "homepage": "https://github.com/Enplug/sdk#readme", | ||
"@types/jasmine": "^2.6.0", | ||
"@types/node": "^8.0.45", | ||
"@types/node": "^14.14.37", | ||
"command-line-args": "^4.0.7", | ||
@@ -65,3 +65,3 @@ "es6-shim": "^0.35.3", | ||
"tslint": "^5.7.0", | ||
"typescript": "^2.9.2", | ||
"typescript": "~4.0.0", | ||
"uglifyjs-webpack-plugin": "^2.2.0", | ||
@@ -68,0 +68,0 @@ "webpack": "^4.41.2", |
Sorry, the diff of this file is not supported yet
24
132110
1603