@aws-sdk/region-provider
Advanced tools
Comparing version 0.1.0-preview.3 to 0.1.0-preview.4
@@ -1,5 +0,5 @@ | ||
import { EnvConfiguration } from './fromEnv'; | ||
import { SharedConfigInit } from './fromSharedConfigFiles'; | ||
import { Provider } from '@aws-sdk/types'; | ||
import { EnvConfiguration } from "./fromEnv"; | ||
import { SharedConfigInit } from "./fromSharedConfigFiles"; | ||
import { Provider } from "@aws-sdk/types"; | ||
export declare type RegionProviderConfiguration = EnvConfiguration & SharedConfigInit; | ||
export declare function defaultProvider(configuration?: RegionProviderConfiguration): Provider<string>; |
@@ -11,2 +11,2 @@ "use strict"; | ||
exports.defaultProvider = defaultProvider; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdFByb3ZpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2RlZmF1bHRQcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHFDQUFvRDtBQUNwRCxpRUFBZ0Y7QUFDaEYsZ0VBQTBEO0FBTzFELFNBQWdCLGVBQWUsQ0FDM0IsYUFBK0M7SUFBL0MsOEJBQUEsRUFBQSxrQkFBK0M7SUFFL0MsT0FBTywyQkFBTyxDQUFDLHlCQUFLLENBQ2hCLGlCQUFPLENBQUMsYUFBYSxDQUFDLEVBQ3RCLDZDQUFxQixDQUFDLGFBQWEsQ0FBQyxDQUN2QyxDQUFDLENBQUM7QUFDUCxDQUFDO0FBUEQsMENBT0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0VudkNvbmZpZ3VyYXRpb24sIGZyb21FbnZ9IGZyb20gJy4vZnJvbUVudic7XG5pbXBvcnQge1NoYXJlZENvbmZpZ0luaXQsIGZyb21TaGFyZWRDb25maWdGaWxlc30gZnJvbSAnLi9mcm9tU2hhcmVkQ29uZmlnRmlsZXMnO1xuaW1wb3J0IHtjaGFpbiwgbWVtb2l6ZX0gZnJvbSAnQGF3cy1zZGsvcHJvcGVydHktcHJvdmlkZXInO1xuaW1wb3J0IHtQcm92aWRlcn0gZnJvbSAnQGF3cy1zZGsvdHlwZXMnO1xuXG5leHBvcnQgdHlwZSBSZWdpb25Qcm92aWRlckNvbmZpZ3VyYXRpb24gPVxuICAgIEVudkNvbmZpZ3VyYXRpb24gJlxuICAgIFNoYXJlZENvbmZpZ0luaXQ7XG5cbmV4cG9ydCBmdW5jdGlvbiBkZWZhdWx0UHJvdmlkZXIoXG4gICAgY29uZmlndXJhdGlvbjogUmVnaW9uUHJvdmlkZXJDb25maWd1cmF0aW9uID0ge31cbik6IFByb3ZpZGVyPHN0cmluZz4ge1xuICAgIHJldHVybiBtZW1vaXplKGNoYWluKFxuICAgICAgICBmcm9tRW52KGNvbmZpZ3VyYXRpb24pLFxuICAgICAgICBmcm9tU2hhcmVkQ29uZmlnRmlsZXMoY29uZmlndXJhdGlvbilcbiAgICApKTtcbn1cbiJdfQ== | ||
//# sourceMappingURL=defaultProvider.js.map |
@@ -1,2 +0,2 @@ | ||
import { Provider } from '@aws-sdk/types'; | ||
import { Provider } from "@aws-sdk/types"; | ||
export declare const ENV_REGION = "AWS_REGION"; | ||
@@ -3,0 +3,0 @@ export interface EnvConfiguration { |
@@ -5,3 +5,3 @@ "use strict"; | ||
var property_provider_1 = require("@aws-sdk/property-provider"); | ||
exports.ENV_REGION = 'AWS_REGION'; | ||
exports.ENV_REGION = "AWS_REGION"; | ||
function fromEnv(_a) { | ||
@@ -22,2 +22,2 @@ var _this = this; | ||
exports.fromEnv = fromEnv; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbUVudi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9mcm9tRW52LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGdFQUF5RDtBQUc1QyxRQUFBLFVBQVUsR0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gICAgIHRocm93IG5ldyBQcm92aWRlckVycm9yKFxuICAgICAgICAgICAgYE5vIHZhbHVlIGRlZmluZWQgZm9yIHRoZSAke2Vudmlyb25tZW50VmFyaWFibGVOYW1lfSBlbnZpcm9ubWVudCB2YXJpYWJsZWBcbiAgICAgICAgKTtcbiAgICB9O1xufVxuIl19 | ||
//# sourceMappingURL=fromEnv.js.map |
@@ -1,3 +0,3 @@ | ||
import { SharedConfigFiles, SharedConfigInit as BaseSharedConfigInit } from '@aws-sdk/shared-ini-file-loader'; | ||
import { Provider } from '@aws-sdk/types'; | ||
import { SharedConfigFiles, SharedConfigInit as BaseSharedConfigInit } from "@aws-sdk/shared-ini-file-loader"; | ||
import { Provider } from "@aws-sdk/types"; | ||
export declare const ENV_PROFILE = "AWS_PROFILE"; | ||
@@ -4,0 +4,0 @@ export interface SharedConfigInit extends BaseSharedConfigInit { |
@@ -6,4 +6,4 @@ "use strict"; | ||
var shared_ini_file_loader_1 = require("@aws-sdk/shared-ini-file-loader"); | ||
var DEFAULT_PROFILE = 'default'; | ||
exports.ENV_PROFILE = 'AWS_PROFILE'; | ||
var DEFAULT_PROFILE = "default"; | ||
exports.ENV_PROFILE = "AWS_PROFILE"; | ||
function fromSharedConfigFiles(init) { | ||
@@ -20,3 +20,3 @@ if (init === void 0) { init = {}; } | ||
var region = (file[profile] || {}).region; | ||
if (typeof region === 'string') { | ||
if (typeof region === "string") { | ||
return region; | ||
@@ -38,2 +38,2 @@ } | ||
exports.fromSharedConfigFiles = fromSharedConfigFiles; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbVNoYXJlZENvbmZpZ0ZpbGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2Zyb21TaGFyZWRDb25maWdGaWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxnRUFBeUQ7QUFDekQsMEVBSXlDO0FBR3p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V9KSA9PiB7XG4gICAgICAgICAgICBmb3IgKGxldCBmaWxlIG9mIFtjcmVkZW50aWFsc0ZpbGUsIGNvbmZpZ0ZpbGVdKSB7XG4gICAgICAgICAgICAgICAgY29uc3Qge3JlZ2lvbn0gPSBmaWxlW3Byb2ZpbGVdIHx8IDxhbnk+e307XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiByZWdpb24gPT09ICdzdHJpbmcnKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiByZWdpb247XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aHJvdyBuZXcgUHJvdmlkZXJFcnJvcihcbiAgICAgICAgICAgICAgICBgTm8gcmVnaW9uIGZvdW5kIGZvciBwcm9maWxlICR7cHJvZmlsZX0gaW4gU0RLIGNvbmZpZ3VyYXRpb24gZmlsZXNgXG4gICAgICAgICAgICApO1xuICAgICAgICB9KTtcbiAgICB9XG59XG4iXX0= | ||
//# sourceMappingURL=fromSharedConfigFiles.js.map |
@@ -1,3 +0,3 @@ | ||
export * from './defaultProvider'; | ||
export * from './fromEnv'; | ||
export * from './fromSharedConfigFiles'; | ||
export * from "./defaultProvider"; | ||
export * from "./fromEnv"; | ||
export * from "./fromSharedConfigFiles"; |
@@ -7,2 +7,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./fromSharedConfigFiles"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNERBQWtDO0FBQ2xDLG9EQUEwQjtBQUMxQixrRUFBd0MiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2RlZmF1bHRQcm92aWRlcic7XG5leHBvcnQgKiBmcm9tICcuL2Zyb21FbnYnO1xuZXhwb3J0ICogZnJvbSAnLi9mcm9tU2hhcmVkQ29uZmlnRmlsZXMnO1xuIl19 | ||
//# sourceMappingURL=index.js.map |
@@ -6,12 +6,24 @@ # Change Log | ||
# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/region-provider@0.1.0-preview.2...@aws-sdk/region-provider@0.1.0-preview.3) (2019-04-19) | ||
# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/region-provider@0.1.0-preview.2...@aws-sdk/region-provider@0.1.0-preview.4) (2019-07-12) | ||
**Note:** Version bump only for package @aws-sdk/region-provider | ||
### Features | ||
* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10c)) | ||
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab)) | ||
# 0.1.0 (2019-04-19) | ||
# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/region-provider@0.1.0-preview.2...@aws-sdk/region-provider@0.1.0-preview.3) (2019-04-19) | ||
**Note:** Version bump only for package @aws-sdk/region-provider | ||
# [0.1.0-preview.2](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/region-provider@0.1.0-preview.1...@aws-sdk/region-provider@0.1.0-preview.2) (2019-03-27) | ||
**Note:** Version bump only for package @aws-sdk/region-provider |
{ | ||
"name": "@aws-sdk/region-provider", | ||
"version": "0.1.0-preview.3", | ||
"description": "AWS region provider for Node.JS. Will determine the default region to use for AWS clients by checking known environment variables and shared configuration files", | ||
"main": "./build/index.js", | ||
"typings": "./build/index.d.ts", | ||
"scripts": { | ||
"prepublishOnly": "tsc", | ||
"pretest": "tsc -p tsconfig.test.json", | ||
"test": "jest" | ||
}, | ||
"keywords": [ | ||
"aws", | ||
"credentials" | ||
], | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"email": "aws-sdk-js@amazon.com", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@aws-sdk/property-provider": "^0.1.0-preview.3", | ||
"@aws-sdk/shared-ini-file-loader": "^0.1.0-preview.1", | ||
"@aws-sdk/types": "^0.1.0-preview.3", | ||
"tslib": "^1.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^20.0.2", | ||
"@types/node": "^8.10.29", | ||
"jest": "^20.0.4", | ||
"typescript": "^3.0.0" | ||
} | ||
"name": "@aws-sdk/region-provider", | ||
"version": "0.1.0-preview.4", | ||
"description": "AWS region provider for Node.JS. Will determine the default region to use for AWS clients by checking known environment variables and shared configuration files", | ||
"main": "./build/index.js", | ||
"typings": "./build/index.d.ts", | ||
"scripts": { | ||
"prepublishOnly": "tsc", | ||
"pretest": "tsc -p tsconfig.test.json", | ||
"test": "jest" | ||
}, | ||
"keywords": [ | ||
"aws", | ||
"credentials" | ||
], | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"email": "", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@aws-sdk/property-provider": "^0.1.0-preview.4", | ||
"@aws-sdk/shared-ini-file-loader": "^0.1.0-preview.2", | ||
"@aws-sdk/types": "^0.1.0-preview.4", | ||
"tslib": "^1.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^24.0.12", | ||
"@types/node": "^10.0.0", | ||
"jest": "^24.7.1", | ||
"typescript": "~3.4.0" | ||
} | ||
} |
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"declaration": true, | ||
"strict": true, | ||
"sourceMap": true, | ||
"downlevelIteration": true, | ||
"lib": [ | ||
"es5", | ||
"es2015.promise", | ||
"es2015.collection", | ||
"es2015.iterable", | ||
"es2015.symbol.wellknown" | ||
], | ||
"rootDir": "./src", | ||
"outDir": "./build", | ||
"importHelpers": true, | ||
"noEmitHelpers": true | ||
} | ||
} | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"declaration": true, | ||
"strict": true, | ||
"sourceMap": true, | ||
"downlevelIteration": true, | ||
"lib": [ | ||
"es5", | ||
"es2015.promise", | ||
"es2015.collection", | ||
"es2015.iterable", | ||
"es2015.symbol.wellknown" | ||
], | ||
"rootDir": "./src", | ||
"outDir": "./build", | ||
"importHelpers": true, | ||
"noEmitHelpers": true | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
18
125
0
5
20826