From 8147427a1b3dc7e3193160b7e78ec094a7aa2cb3 Mon Sep 17 00:00:00 2001 From: Moshik Zur Date: Mon, 5 Sep 2016 16:01:31 -0700 Subject: [PATCH] Add missing minimatch typings and fix references --- tasks/store-publish/apiWrapper.ts | 5 +++-- tasks/store-publish/publish.ts | 11 ++++++----- typings.json | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/tasks/store-publish/apiWrapper.ts b/tasks/store-publish/apiWrapper.ts index a9c2c8e..33f4b49 100644 --- a/tasks/store-publish/apiWrapper.ts +++ b/tasks/store-publish/apiWrapper.ts @@ -2,6 +2,7 @@ * A helper for the Store API. Allows one to authenticate and perform requests through the API. */ +/// /// /// /// @@ -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 diff --git a/tasks/store-publish/publish.ts b/tasks/store-publish/publish.ts index ef9f171..b1598a9 100644 --- a/tasks/store-publish/publish.ts +++ b/tasks/store-publish/publish.ts @@ -5,6 +5,7 @@ /// /// +/// /// import api = require('./apiWrapper'); @@ -214,7 +215,7 @@ function getAppResource(): Q.Promise return api.performAuthenticatedRequest(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) diff --git a/typings.json b/typings.json index 1258844..da6a375 100644 --- a/typings.json +++ b/typings.json @@ -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",