Merged PR 136313: 2.16.3 global this

Between versions 2.15.1 and 2.16.1 Webpack version was updated which caused the compiled JS code to use the window object instead of the global `this` object.

`window` object is not defined in Node.JS so when I tried to update the version used by the front end E2E tests I got the following error:
It might also be the reason why the travis build fails the `npm install` in Github.

![e2e.PNG](https://powerbi.visualstudio.com/4c7b5adb-c2d0-4f18-b23c-edc4ac30f4e1/_apis/git/repositories/3e42401e-931d-4a96-b4b9-3533d1cf56ce/pullRequests/136311/attachments/e2e.PNG)
This commit is contained in:
Shahak Yosef 2020-12-30 09:23:51 +00:00
Родитель d7b085303c
Коммит 194de2f843
6 изменённых файлов: 10 добавлений и 9 удалений

2
dist/powerbi-client.d.ts поставляемый
Просмотреть файл

@ -1,4 +1,4 @@
/*! powerbi-client v2.16.2 | (c) 2016 Microsoft Corporation MIT */
/*! powerbi-client v2.16.3 | (c) 2016 Microsoft Corporation MIT */
declare module "util" {
import { HttpPostMessage } from 'http-post-message';
/**

6
dist/powerbi.js поставляемый
Просмотреть файл

@ -1,4 +1,4 @@
/*! powerbi-client v2.16.2 | (c) 2016 Microsoft Corporation MIT */
/*! powerbi-client v2.16.3 | (c) 2016 Microsoft Corporation MIT */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
@ -8,7 +8,7 @@
exports["powerbi-client"] = factory();
else
root["powerbi-client"] = factory();
})(window, function() {
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -5864,7 +5864,7 @@ exports.BookmarksManager = BookmarksManager;
Object.defineProperty(exports, "__esModule", { value: true });
/** @ignore */ /** */
var config = {
version: '2.16.2',
version: '2.16.3',
type: 'js'
};
exports.default = config;

6
dist/powerbi.min.js поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "powerbi-client",
"version": "2.16.2",
"version": "2.16.3",
"description": "JavaScript library for embedding Power BI into your apps. Provides service which makes it easy to embed different types of components and an object model which allows easy interaction with these components such as changing pages, applying filters, and responding to data selection.",
"main": "dist/powerbi.js",
"types": "dist/powerbi-client.d.ts",

Просмотреть файл

@ -1,6 +1,6 @@
/** @ignore *//** */
const config = {
version: '2.16.2',
version: '2.16.3',
type: 'js'
};

Просмотреть файл

@ -5,6 +5,7 @@ module.exports = {
'powerbi': './src/powerbi-client.ts'
},
output: {
globalObject: "this",
path: __dirname + "/dist",
filename: '[name].js',
library: package.name,