Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 86e7cf3

Browse files
committed
Updating to M104 deployment.
1 parent 49bbcac commit 86e7cf3

File tree

7 files changed

+4740
-828
lines changed

7 files changed

+4740
-828
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Dependency graph for the types:
8383
Although TypeScript declare files do not exist at [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) repo, they can still be used through [tsd](https://www.npmjs.com/package/tsd).
8484

8585
1. First, make sure that the dependencies are loaded using below command:
86-
* `tsd install jquery knockout q --save`
86+
* `tsd install jquery knockout q require --save`
8787

8888
2. Next, run below command to get vss-web-extension-sdk types added to tsd.d.ts:
8989
* `tsd link`

Diff for: lib/VSS.SDK.js

+11-4
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ var VSS;
667667
(function (VSS) {
668668
// W A R N I N G: if VssSDKVersion changes, the VSS WEB SDK demand resolver needs to be updated with the new version
669669
VSS.VssSDKVersion = 2.0;
670-
VSS.VssSDKRestVersion = "2.2";
670+
VSS.VssSDKRestVersion = "2.3";
671671
var bodyElement;
672672
var webContext;
673673
var hostPageContext;
@@ -948,7 +948,9 @@ var VSS;
948948
function issueVssRequire(modules, callback) {
949949
if (hostPageContext.diagnostics.bundlingEnabled) {
950950
window.require(["VSS/Bundling"], function (VSS_Bundling) {
951-
VSS_Bundling.requireModules(modules, callback);
951+
VSS_Bundling.requireModules(modules).spread(function () {
952+
callback.apply(this, arguments);
953+
});
952954
});
953955
}
954956
else {
@@ -1126,12 +1128,17 @@ var VSS;
11261128
VSS.getAppToken = getAppToken;
11271129
/**
11281130
* Requests the parent window to resize the container for this extension based on the current extension size.
1131+
*
1132+
* @param width Optional width, defaults to scrollWidth
1133+
* @param height Optional height, defaults to scrollHeight
11291134
*/
1130-
function resize() {
1135+
function resize(width, height) {
11311136
if (!bodyElement) {
11321137
bodyElement = document.getElementsByTagName("body").item(0);
11331138
}
1134-
parentChannel.invokeRemoteMethod("resize", "VSS.HostControl", [bodyElement.scrollWidth, bodyElement.scrollHeight]);
1139+
var newWidth = typeof width === "number" ? width : bodyElement.scrollWidth;
1140+
var newHeight = typeof height === "number" ? height : bodyElement.scrollHeight;
1141+
parentChannel.invokeRemoteMethod("resize", "VSS.HostControl", [newWidth, newHeight]);
11351142
}
11361143
VSS.resize = resize;
11371144
function setupAmdLoader() {

Diff for: lib/VSS.SDK.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vss-web-extension-sdk",
3-
"version": "1.102.0",
3+
"version": "1.104.0",
44
"description": "Visual Studio Services Client SDK. JavaScript library for Visual Studio Online extensions.",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)