From 848d3fd9ac6c517d3baa60de675ce3cab1e404d0 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sat, 8 Dec 2018 00:51:33 -0800 Subject: [PATCH] Generated from 0cef2eebc5238a96f84b4593376716d26cd26c0a (#792) typo: cognitiveservices/data-plane/Face - persisited -> persisted --- .../@azure/cognitiveservices-face/README.md | 8 +++---- .../lib/operations/faceListOperations.ts | 2 +- .../lib/operations/largeFaceListOperations.ts | 2 +- .../cognitiveservices-face/package.json | 3 ++- .../cognitiveservices-face/rollup.config.js | 22 ++++++++++++------- 5 files changed, 22 insertions(+), 15 deletions(-) diff --git a/packages/@azure/cognitiveservices-face/README.md b/packages/@azure/cognitiveservices-face/README.md index 801fa95b92fe..10774c0f6160 100644 --- a/packages/@azure/cognitiveservices-face/README.md +++ b/packages/@azure/cognitiveservices-face/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for FaceClient. ### How to Install -``` +```bash npm install @azure/cognitiveservices-face ``` @@ -19,13 +19,13 @@ npm install @azure/cognitiveservices-face ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; import { FaceClient, FaceModels, FaceMappers } from "@azure/cognitiveservices-face"; @@ -49,7 +49,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` diff --git a/packages/@azure/cognitiveservices-face/lib/operations/faceListOperations.ts b/packages/@azure/cognitiveservices-face/lib/operations/faceListOperations.ts index bda8061fe344..909b538d992a 100644 --- a/packages/@azure/cognitiveservices-face/lib/operations/faceListOperations.ts +++ b/packages/@azure/cognitiveservices-face/lib/operations/faceListOperations.ts @@ -165,7 +165,7 @@ export class FaceListOperations { } /** - * Delete an existing face from a face list (given by a persisitedFaceId and a faceListId). + * Delete an existing face from a face list (given by a persistedFaceId and a faceListId). * Persisted image related to the face will also be deleted. * @param faceListId Id referencing a particular face list. * @param persistedFaceId Id referencing a particular persistedFaceId of an existing face. diff --git a/packages/@azure/cognitiveservices-face/lib/operations/largeFaceListOperations.ts b/packages/@azure/cognitiveservices-face/lib/operations/largeFaceListOperations.ts index 51a8c7752845..1a26908ec4a6 100644 --- a/packages/@azure/cognitiveservices-face/lib/operations/largeFaceListOperations.ts +++ b/packages/@azure/cognitiveservices-face/lib/operations/largeFaceListOperations.ts @@ -222,7 +222,7 @@ export class LargeFaceListOperations { } /** - * Delete an existing face from a large face list (given by a persisitedFaceId and a + * Delete an existing face from a large face list (given by a persistedFaceId and a * largeFaceListId). Persisted image related to the face will also be deleted. * @param largeFaceListId Id referencing a particular large face list. * @param persistedFaceId Id referencing a particular persistedFaceId of an existing face. diff --git a/packages/@azure/cognitiveservices-face/package.json b/packages/@azure/cognitiveservices-face/package.json index 31972e1b3086..13ab05a044dd 100644 --- a/packages/@azure/cognitiveservices-face/package.json +++ b/packages/@azure/cognitiveservices-face/package.json @@ -4,7 +4,7 @@ "description": "FaceClient Library with typescript type definitions for node.js and browser.", "version": "0.1.0", "dependencies": { - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -22,6 +22,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/cognitiveservices-face", diff --git a/packages/@azure/cognitiveservices-face/rollup.config.js b/packages/@azure/cognitiveservices-face/rollup.config.js index f24139915698..0a02eb764a23 100644 --- a/packages/@azure/cognitiveservices-face/rollup.config.js +++ b/packages/@azure/cognitiveservices-face/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/faceClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/faceClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/cognitiveservices-face.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;