fix webpack, updated versions
This commit is contained in:
Родитель
6b3cc08206
Коммит
dd98ceb687
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["azureEnvironmentBundle.js"],"names":["azureEnvironment","modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","value","AzureEnvironment","[object Object]","parameters","this","validateAuthority","forEach","param","valueOf","Error","prop","envContainer","envObj","assign","TypeError","Azure","portalUrl","publishingProfileUrl","managementEndpointUrl","resourceManagerEndpointUrl","sqlManagementEndpointUrl","sqlServerHostnameSuffix","galleryEndpointUrl","activeDirectoryEndpointUrl","activeDirectoryResourceId","activeDirectoryGraphResourceId","batchResourceId","activeDirectoryGraphApiVersion","storageEndpointSuffix","keyVaultDnsSuffix","azureDataLakeStoreFileSystemEndpointSuffix","azureDataLakeAnalyticsCatalogAndJobEndpointSuffix","AzureChina","AzureUSGovernment","AzureGermanCloud"],"mappings":"AAAA,IAAIA,iBACK,SAAUC,GAKT,SAASC,EAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,OAAOC,EAAiBD,GAAUE,QAGnC,IAAIC,EAASF,EAAiBD,IAC7BI,EAAGJ,EACHK,GAAG,EACHH,YAUD,OANAJ,EAAQE,GAAUM,KAAKH,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOE,GAAI,EAGJF,EAAOD,QAvBf,IAAID,KA4DJ,OAhCAF,EAAoBQ,EAAIT,EAGxBC,EAAoBS,EAAIP,EAGxBF,EAAoBU,EAAI,SAASP,EAASQ,EAAMC,GAC3CZ,EAAoBa,EAAEV,EAASQ,IAClCG,OAAOC,eAAeZ,EAASQ,GAC9BK,cAAc,EACdC,YAAY,EACZC,IAAKN,KAMRZ,EAAoBmB,EA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sB,iDACtBC,sBAAuB,2CACvBC,2BAA4B,sCAC5BC,yBAA0B,iDAC1BC,wBAAyB,6BACzBC,mBAAoB,oCACpBC,2BAA4B,kCAC5BC,0BAA2B,4CAC3BC,+BAAgC,kCAChCE,+BAAgC,aAChCD,gBAAiB,kCACjBE,sBAAuB,yBACvBC,kBAAmB,kBAEnBC,2CAA4C,MAC5CC,kDAAmD,MACnD1B,mBAAmB,GAEvBJ,EAAiBgC,mBACbjD,KAAM,oBACNgC,UAAW,0BACXC,qBAAsB,uDACtBC,sBAAuB,4CACvBC,2BAA4B,uCAC5BC,yBAA0B,kDAC1BC,wBAAyB,8BACzBC,mBAAoB,qCACpBC,2BAA4B,wCAC5BC,0BAA2B,6CAC3BC,+BAAgC,6BAChCC,gBAAiB,wCACjBC,+BAAgC,aAChCC,sBAAuB,0BACvBC,kBAAmB,2BACnBC,2CAA4C,MAC5CC,kDAAmD,MACnD1B,mBAAmB,GAEvBJ,EAAiBiC,kBACblD,KAAM,mBACNgC,UAAW,oCACXC,qBAAsB,yDACtBC,sBAAuB,sCACvBC,2BAA4B,uCAC5BC,yBAA0B,4CAC1BC,wBAAyB,wBACzBC,mBAAoB,+BACpBC,2BAA4B,oCAC5BC,0BAA2B,uCAC3BC,+BAAgC,6BAChCC,gBAAiB,mCACjBC,+BAAgC,aAChCC,sBAAuB,oBACvBC,kBAAmB,2BACnBC,2CAA4C,MAC5CC,kDAAmD,MACnD1B,mBAAmB,GAEvB7B,EAAQyB,iBAAmBA"}
|
||||
{"version":3,"sources":["azureEnvironmentBundle.js"],"names":["azureEnvironment","e","t","r","a","exports","n","i","l","call","m","c","d","o","Object","defineProperty","enumerable","get","Symbol","toStringTag","value","__esModule","create","bind","default","prototype","hasOwnProperty","p","s","[object Object]","this","validateAuthority","Error","forEach","valueOf","name","portalUrl","managementEndpointUrl","resourceManagerEndpointUrl","activeDirectoryEndpointUrl","activeDirectoryResourceId","activeDirectoryGraphApiVersion","activeDirectoryGraphResourceId","azureDataLakeAnalyticsCatalogAndJobEndpointSuffix","azureDataLakeStoreFileSystemEndpointSuffix","batchResourceId","galleryEndpointUrl","keyVaultDnsSuffix","publishingProfileUrl","sqlManagementEndpointUrl","sqlServerHostnameSuffix","storageEndpointSuffix","assign","TypeError","Azure","AzureChina","AzureUSGovernment","AzureGermanCloud","AzureEnvironment"],"mappings":"AAAA,IAAIA,iBAAiB,SAASC,GAAG,IAAIC,KAAK,SAASC,EAAEC,GAAG,GAAGF,EAAEE,GAAG,OAAOF,EAAEE,GAAGC,QAAQ,IAAIC,EAAEJ,EAAEE,IAAIG,EAAEH,EAAEI,GAAE,EAAGH,YAAY,OAAOJ,EAAEG,GAAGK,KAAKH,EAAED,QAAQC,EAAEA,EAAED,QAAQF,GAAGG,EAAEE,GAAE,EAAGF,EAAED,QAAQ,OAAOF,EAAEO,EAAET,EAAEE,EAAEQ,EAAET,EAAEC,EAAES,EAAE,SAASX,EAAEC,EAAEE,GAAGD,EAAEU,EAAEZ,EAAEC,IAAIY,OAAOC,eAAed,EAAEC,GAAGc,YAAW,EAAGC,IAAIb,KAAKD,EAAEA,EAAE,SAASF,GAAG,oBAAoBiB,QAAQA,OAAOC,aAAaL,OAAOC,eAAed,EAAEiB,OAAOC,aAAaC,MAAM,WAAWN,OAAOC,eAAed,EAAE,cAAcmB,OAAM,KAAMjB,EAAED,EAAE,SAASD,EAAEC,GAAG,GAAG,EAAEA,IAAID,EAAEE,EAAEF,IAAI,EAAEC,EAAE,OAAOD,EAAE,GAAG,EAAEC,GAAG,iBAAiBD,GAAGA,GAAGA,EAAEoB,WAAW,OAAOpB,EAAE,IAAIG,EAAEU,OAAOQ,OAAO,MAAM,GAAGnB,EAAEA,EAAEC,GAAGU,OAAOC,eAAeX,EAAE,WAAWY,YAAW,EAAGI,MAAMnB,IAAI,EAAEC,GAAG,iBAAiBD,EAAE,IAAI,IAAIK,KAAKL,EAAEE,EAAES,EAAER,EAAEE,EAAE,SAASJ,GAAG,OAAOD,EAAEC,IAAIq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AAuCW,yBAAyB,kDAAkDC,wBAAwB,8BAA8BJ,mBAAmB,qCAAqCP,2BAA2B,wCAAwCC,0BAA0B,6CAA6CE,+BAA+B,6BAA6BG,gBAAgB,wCAAwCJ,+BAA+B,aAAaU,sBAAsB,0BAA0BJ,kBAAkB,2BAA2BH,2CAA2C,MAAMD,kDAAkD,MAAMZ,mBAAkB,GAAI3B,EAAEqD,kBAAkBtB,KAAK,mBAAmBC,UAAU,oCAAoCY,qBAAqB,yDAAyDX,sBAAsB,sCAAsCC,2BAA2B,uCAAuCW,yBAAyB,4CAA4CC,wBAAwB,wBAAwBJ,mBAAmB,+BAA+BP,2BAA2B,oCAAoCC,0BAA0B,uCAAuCE,+BAA+B,6BAA6BG,gBAAgB,mCAAmCJ,+BAA+B,aAAaU,sBAAsB,oBAAoBJ,kBAAkB,2BAA2BH,2CAA2C,MAAMD,kDAAkD,MAAMZ,mBAAkB,GAAI7B,EAAEwD,iBAAiBtD"}
|
|
@ -4,21 +4,59 @@
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class AzureEnvironment {
|
||||
constructor(parameters) {
|
||||
// set default
|
||||
/**
|
||||
* Determines whether the authentication endpoint should be validated with Azure AD. Default value is true.
|
||||
*/
|
||||
this.validateAuthority = true;
|
||||
if (parameters) {
|
||||
// Validate required parameters
|
||||
const requiredParams = ["name", "portalUrl", "managementEndpointUrl", "resourceManagerEndpointUrl",
|
||||
"activeDirectoryEndpointUrl", "activeDirectoryResourceId"];
|
||||
requiredParams.forEach(function (param) {
|
||||
if (!parameters[param] || typeof parameters[param].valueOf() !== "string") {
|
||||
throw new Error(`Please provide "${param}" for the environment and it must be of type "string".`);
|
||||
}
|
||||
});
|
||||
// Assign provided parameters
|
||||
for (const prop in parameters) {
|
||||
this[prop] = parameters[prop];
|
||||
if (!parameters || typeof parameters !== "object") {
|
||||
throw new Error("'parameters' is a required parameter and must be of type 'object'.");
|
||||
}
|
||||
// Validate required parameters
|
||||
const requiredParams = ["name", "portalUrl", "managementEndpointUrl", "resourceManagerEndpointUrl",
|
||||
"activeDirectoryEndpointUrl", "activeDirectoryResourceId"];
|
||||
requiredParams.forEach(function (param) {
|
||||
if (!parameters[param] || typeof parameters[param].valueOf() !== "string") {
|
||||
throw new Error(`Please provide "${param}" for the environment and it must be of type "string".`);
|
||||
}
|
||||
});
|
||||
this.name = parameters.name;
|
||||
this.portalUrl = parameters.portalUrl;
|
||||
this.managementEndpointUrl = parameters.managementEndpointUrl;
|
||||
this.resourceManagerEndpointUrl = parameters.resourceManagerEndpointUrl;
|
||||
this.activeDirectoryEndpointUrl = parameters.activeDirectoryEndpointUrl;
|
||||
this.activeDirectoryResourceId = parameters.activeDirectoryResourceId;
|
||||
if (this.activeDirectoryGraphApiVersion) {
|
||||
this.activeDirectoryGraphApiVersion = parameters.activeDirectoryGraphApiVersion;
|
||||
}
|
||||
if (this.activeDirectoryGraphResourceId) {
|
||||
this.activeDirectoryGraphResourceId = parameters.activeDirectoryGraphResourceId;
|
||||
}
|
||||
if (this.azureDataLakeAnalyticsCatalogAndJobEndpointSuffix) {
|
||||
this.azureDataLakeAnalyticsCatalogAndJobEndpointSuffix = parameters.azureDataLakeAnalyticsCatalogAndJobEndpointSuffix;
|
||||
}
|
||||
if (this.azureDataLakeStoreFileSystemEndpointSuffix) {
|
||||
this.azureDataLakeStoreFileSystemEndpointSuffix = parameters.azureDataLakeStoreFileSystemEndpointSuffix;
|
||||
}
|
||||
if (this.batchResourceId) {
|
||||
this.batchResourceId = parameters.batchResourceId;
|
||||
}
|
||||
if (this.galleryEndpointUrl) {
|
||||
this.galleryEndpointUrl = parameters.galleryEndpointUrl;
|
||||
}
|
||||
if (this.keyVaultDnsSuffix) {
|
||||
this.keyVaultDnsSuffix = parameters.keyVaultDnsSuffix;
|
||||
}
|
||||
if (this.publishingProfileUrl) {
|
||||
this.publishingProfileUrl = parameters.publishingProfileUrl;
|
||||
}
|
||||
if (this.sqlManagementEndpointUrl) {
|
||||
this.sqlManagementEndpointUrl = parameters.sqlManagementEndpointUrl;
|
||||
}
|
||||
if (this.sqlServerHostnameSuffix) {
|
||||
this.sqlServerHostnameSuffix = parameters.sqlServerHostnameSuffix;
|
||||
}
|
||||
if (this.storageEndpointSuffix) {
|
||||
this.storageEndpointSuffix = parameters.storageEndpointSuffix;
|
||||
}
|
||||
}
|
||||
static add(parameters) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"azureEnvironment.js","sourceRoot":"","sources":["../../lib/azureEnvironment.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,+FAA+F;;AAyF/F;IA2FE,YAAY,UAAsC;QAChD,cAAc;QACd,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAC9B,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;YACf,+BAA+B;YAC/B,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,4BAA4B;gBAChG,4BAA4B,EAAE,2BAA2B,CAAC,CAAC;YAC7D,cAAc,CAAC,OAAO,CAAC,UAAU,KAAK;gBACpC,EAAE,CAAC,CAAC,CAAO,UAAW,CAAC,KAAK,CAAC,IAAI,OAAa,UAAW,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC;oBACxF,MAAM,IAAI,KAAK,CAAC,mBAAmB,KAAK,wDAAwD,CAAC,CAAC;gBACpG,CAAC;YACH,CAAC,CAAC,CAAC;YACH,6BAA6B;YAC7B,GAAG,CAAC,CAAC,MAAM,IAAI,IAAI,UAAU,CAAC,CAAC,CAAC;gBACxB,IAAK,CAAC,IAAI,CAAC,GAAS,UAAW,CAAC,IAAI,CAAC,CAAC;YAC9C,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,UAAsC;QAC/C,MAAM,YAAY,GAAyC,EAAE,CAAC;QAC9D,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,C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B,CAAC;AA1PJ,4CA2PC"}
|
|
@ -57,6 +57,11 @@ export interface AzureEnvironmentParameters {
|
|||
*/
|
||||
readonly activeDirectoryGraphResourceId?: string;
|
||||
|
||||
/**
|
||||
* The batch resource ID.
|
||||
*/
|
||||
readonly batchResourceId?: string;
|
||||
|
||||
/**
|
||||
* The Active Directory api version.
|
||||
*/
|
||||
|
@ -177,24 +182,69 @@ export class AzureEnvironment {
|
|||
/**
|
||||
* Determines whether the authentication endpoint should be validated with Azure AD. Default value is true.
|
||||
*/
|
||||
readonly validateAuthority?: boolean;
|
||||
readonly validateAuthority: boolean = true;
|
||||
|
||||
constructor(parameters: AzureEnvironmentParameters) {
|
||||
// set default
|
||||
this.validateAuthority = true;
|
||||
if (parameters) {
|
||||
// Validate required parameters
|
||||
const requiredParams = ["name", "portalUrl", "managementEndpointUrl", "resourceManagerEndpointUrl",
|
||||
"activeDirectoryEndpointUrl", "activeDirectoryResourceId"];
|
||||
requiredParams.forEach(function (param) {
|
||||
if (!(<any>parameters)[param] || typeof (<any>parameters)[param].valueOf() !== "string") {
|
||||
throw new Error(`Please provide "${param}" for the environment and it must be of type "string".`);
|
||||
}
|
||||
});
|
||||
// Assign provided parameters
|
||||
for (const prop in parameters) {
|
||||
(<any>this)[prop] = (<any>parameters)[prop];
|
||||
|
||||
if (!parameters || typeof parameters !== "object") {
|
||||
throw new Error("'parameters' is a required parameter and must be of type 'object'.");
|
||||
}
|
||||
|
||||
// Validate required parameters
|
||||
const requiredParams = ["name", "portalUrl", "managementEndpointUrl", "resourceManagerEndpointUrl",
|
||||
"activeDirectoryEndpointUrl", "activeDirectoryResourceId"];
|
||||
requiredParams.forEach(function (param) {
|
||||
if (!(<any>parameters)[param] || typeof (<any>parameters)[param].valueOf() !== "string") {
|
||||
throw new Error(`Please provide "${param}" for the environment and it must be of type "string".`);
|
||||
}
|
||||
});
|
||||
|
||||
this.name = parameters.name;
|
||||
this.portalUrl = parameters.portalUrl;
|
||||
this.managementEndpointUrl = parameters.managementEndpointUrl;
|
||||
this.resourceManagerEndpointUrl = parameters.resourceManagerEndpointUrl;
|
||||
this.activeDirectoryEndpointUrl = parameters.activeDirectoryEndpointUrl;
|
||||
this.activeDirectoryResourceId = parameters.activeDirectoryResourceId;
|
||||
if (this.activeDirectoryGraphApiVersion) {
|
||||
this.activeDirectoryGraphApiVersion = parameters.activeDirectoryGraphApiVersion;
|
||||
}
|
||||
if (this.activeDirectoryGraphResourceId) {
|
||||
this.activeDirectoryGraphResourceId = parameters.activeDirectoryGraphResourceId;
|
||||
}
|
||||
if (this.azureDataLakeAnalyticsCatalogAndJobEndpointSuffix) {
|
||||
this.azureDataLakeAnalyticsCatalogAndJobEndpointSuffix = parameters.azureDataLakeAnalyticsCatalogAndJobEndpointSuffix;
|
||||
}
|
||||
|
||||
if (this.azureDataLakeStoreFileSystemEndpointSuffix) {
|
||||
this.azureDataLakeStoreFileSystemEndpointSuffix = parameters.azureDataLakeStoreFileSystemEndpointSuffix;
|
||||
}
|
||||
|
||||
if (this.batchResourceId) {
|
||||
this.batchResourceId = parameters.batchResourceId;
|
||||
}
|
||||
|
||||
if (this.galleryEndpointUrl) {
|
||||
this.galleryEndpointUrl = parameters.galleryEndpointUrl;
|
||||
}
|
||||
|
||||
if (this.keyVaultDnsSuffix) {
|
||||
this.keyVaultDnsSuffix = parameters.keyVaultDnsSuffix;
|
||||
}
|
||||
|
||||
if (this.publishingProfileUrl) {
|
||||
this.publishingProfileUrl = parameters.publishingProfileUrl;
|
||||
}
|
||||
|
||||
if (this.sqlManagementEndpointUrl) {
|
||||
this.sqlManagementEndpointUrl = parameters.sqlManagementEndpointUrl;
|
||||
}
|
||||
|
||||
if (this.sqlServerHostnameSuffix) {
|
||||
this.sqlServerHostnameSuffix = parameters.sqlServerHostnameSuffix;
|
||||
}
|
||||
|
||||
if (this.storageEndpointSuffix) {
|
||||
this.storageEndpointSuffix = parameters.storageEndpointSuffix;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
13
package.json
13
package.json
|
@ -27,13 +27,16 @@
|
|||
"devDependencies": {
|
||||
"@types/mocha": "^2.2.40",
|
||||
"@types/should": "^8.1.30",
|
||||
"mocha": "^3.5.3",
|
||||
"@types/webpack": "^4.1.3",
|
||||
"mocha": "^5.2.0",
|
||||
"should": "5.2.0",
|
||||
"ts-loader": "^2.3.7",
|
||||
"tslint": "^5.7.0",
|
||||
"ts-loader": "^4.5.0",
|
||||
"tslint": "^5.11.0",
|
||||
"typescript": "^3.0.1",
|
||||
"uglify-es": "^3.1.0",
|
||||
"webpack": "^4.17.1",
|
||||
"uglify-es": "^3.1.0"
|
||||
"webpack-cli": "^3.1.0",
|
||||
"ts-node": "^7.0.1"
|
||||
},
|
||||
"homepage": "https://github.com/Azure/ms-rest-azure-env",
|
||||
"repository": {
|
||||
|
@ -51,4 +54,4 @@
|
|||
"tslint": "tslint -p . -c tslint.json --exclude test/**/*.ts",
|
||||
"prepare": "npm run build"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,10 @@ export interface AzureEnvironmentParameters {
|
|||
* The Active Directory resource ID.
|
||||
*/
|
||||
readonly activeDirectoryGraphResourceId?: string;
|
||||
/**
|
||||
* The batch resource ID.
|
||||
*/
|
||||
readonly batchResourceId?: string;
|
||||
/**
|
||||
* The Active Directory api version.
|
||||
*/
|
||||
|
@ -140,7 +144,7 @@ export declare class AzureEnvironment {
|
|||
/**
|
||||
* Determines whether the authentication endpoint should be validated with Azure AD. Default value is true.
|
||||
*/
|
||||
readonly validateAuthority?: boolean;
|
||||
readonly validateAuthority: boolean;
|
||||
constructor(parameters: AzureEnvironmentParameters);
|
||||
static add(parameters: AzureEnvironmentParameters): void;
|
||||
static get(name: string): AzureEnvironment;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export {};
|
|
@ -1,7 +1,7 @@
|
|||
const webpack = require('webpack');
|
||||
const path = require('path');
|
||||
import * as webpack from 'webpack';
|
||||
|
||||
module.exports = {
|
||||
const config: webpack.Configuration = {
|
||||
mode: "production",
|
||||
entry: './lib/azureEnvironment.ts',
|
||||
devtool: 'source-map',
|
||||
output: {
|
||||
|
@ -30,6 +30,10 @@ module.exports = {
|
|||
tls: false,
|
||||
tty: false,
|
||||
v8: false,
|
||||
Buffer: false
|
||||
Buffer: false,
|
||||
process: false,
|
||||
stream: false
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export = config;
|
Загрузка…
Ссылка в новой задаче