Add missing minimatch typings and fix references

This commit is contained in:
Moshik Zur 2016-09-05 16:01:31 -07:00
Родитель f408938ba3
Коммит 8147427a1b
3 изменённых файлов: 10 добавлений и 7 удалений

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

@ -2,6 +2,7 @@
* A helper for the Store API. Allows one to authenticate and perform requests through the API.
*/
/// <reference path="../../typings/globals/node/index.d.ts" />
/// <reference path="../../typings/globals/form-data/index.d.ts" />
/// <reference path="../../typings/globals/node-uuid/node-uuid-base/index.d.ts" />
/// <reference path="../../typings/globals/node-uuid/node-uuid-cjs/index.d.ts" />
@ -66,7 +67,7 @@ export class ResponseInformation
response: http.IncomingMessage;
body: any;
constructor(_err: any, _res: http.IncomingMessage, _bod: any)
constructor(_err: any, _res: http.IncomingMessage, _bod: any)
{
this.error = _err;
this.response = _res;
@ -362,7 +363,7 @@ async function uploadAzureFileBlocks(fileContents: NodeJS.ReadableStream, blobUr
}
/**
/**
* Examines a response body and logs errors and warnings.
* @param body A body in the format given by the Store API
* (Where body.errors and body.warnings are arrays of objects

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

@ -5,6 +5,7 @@
/// <reference path="../../typings/globals/node/index.d.ts" />
/// <reference path="../../typings/globals/request/index.d.ts" />
/// <reference path="../../typings/globals/minimatch/index.d.ts" />
/// <reference path="../../node_modules/vsts-task-lib/task.d.ts" />
import api = require('./apiWrapper');
@ -214,7 +215,7 @@ function getAppResource(): Q.Promise<any>
return api.performAuthenticatedRequest<any>(currentToken, requestParams);
}
else
else
{
// Otherwise go look for it through the pages of apps, using the primary name we got.
tl.debug(`Getting app information (by app name) for ${taskParams.appName}`);
@ -452,7 +453,7 @@ function makeListing(listingAbsPath: string): any
tl.debug('Obtaining base listing');
baseListing = getListingAttributes(basePath);
}
// Check for platform overrides.
var overridesPath = path.join(listingAbsPath, 'platformOverrides');
@ -523,7 +524,7 @@ function getListingAttributes(listingWithPlatAbsPath: string): any
var contents = fs.readFileSync(txtPath, 'utf-8');
// Based on whether this is an array or string attribute, split or not.
var propName = path.basename(propPath, '.txt');
var propName = path.basename(propPath, '.txt');
listing[propName] = STRING_ARRAY_ATTRIBUTES[propName.toLowerCase()] ? splitAnyNewline(contents) : contents;
});
@ -591,7 +592,7 @@ function getImageAttributes(imagesAbsPath: string, imageName: string, currentFil
if (taskParams.metadataUpdateType == MetadataUpdateType.JsonMetadata)
{
var jsonPath = path.join(imagesAbsPath, imageName + '.metadata.json');
tl.debug(`Loading attributes for ${imageAbsName} from ${jsonPath}`);
image = requireAbsoluteOrRelative(jsonPath);
@ -630,7 +631,7 @@ function getImageAttributes(imagesAbsPath: string, imageName: string, currentFil
}
/**
* Create a zip file containing the information
* Create a zip file containing the information
* @param submissionResource
*/
function createZip(packages: string[], submissionResource: any)

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

@ -1,6 +1,7 @@
{
"globalDependencies": {
"form-data": "registry:dt/form-data#0.0.0+20160316155526",
"minimatch": "registry:dt/minimatch#2.0.8+20160317120654",
"node": "registry:dt/node#6.0.0+20160709114037",
"node-uuid": "registry:dt/node-uuid#0.0.0+20160316155526",
"node-uuid/node-uuid-base": "registry:dt/node-uuid/node-uuid-base#0.0.0+20160316155526",