@aws-sdk/middleware-sdk-route53
Advanced tools
Comparing version 1.0.0-gamma.8 to 1.0.0-rc.1
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.0.0-rc.1](https://github.com/aws/aws-sdk-js-v3/compare/v1.0.0-gamma.11...v1.0.0-rc.1) (2020-10-19) | ||
### Features | ||
* ready for release candidate ([#1578](https://github.com/aws/aws-sdk-js-v3/issues/1578)) ([519f66c](https://github.com/aws/aws-sdk-js-v3/commit/519f66c6388b91d0bd750a511e6d1af56196835e)) | ||
# [1.0.0-gamma.8](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-sdk-route53@1.0.0-gamma.7...@aws-sdk/middleware-sdk-route53@1.0.0-gamma.8) (2020-10-07) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getChangeResourceRecordSetsPlugin = exports.changeResourceRecordSetsMiddlewareOptions = exports.changeResourceRecordSetsMiddleware = void 0; | ||
var tslib_1 = require("tslib"); | ||
var constants_1 = require("./constants"); | ||
const constants_1 = require("./constants"); | ||
function changeResourceRecordSetsMiddleware() { | ||
var _this = this; | ||
return function (next) { return function (args) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
var ChangeBatch, Changes, _a, _b, change, AliasTarget; | ||
var e_1, _c; | ||
return tslib_1.__generator(this, function (_d) { | ||
ChangeBatch = args.input.ChangeBatch; | ||
Changes = []; | ||
try { | ||
for (_a = tslib_1.__values(ChangeBatch.Changes), _b = _a.next(); !_b.done; _b = _a.next()) { | ||
change = _b.value; | ||
AliasTarget = change.ResourceRecordSet.AliasTarget; | ||
if (AliasTarget) { | ||
Changes.push(tslib_1.__assign(tslib_1.__assign({}, change), { ResourceRecordSet: tslib_1.__assign(tslib_1.__assign({}, change.ResourceRecordSet), { AliasTarget: tslib_1.__assign(tslib_1.__assign({}, AliasTarget), { HostedZoneId: AliasTarget.HostedZoneId.replace(constants_1.IDENTIFIER_PREFIX_PATTERN, "") }) }) })); | ||
} | ||
else { | ||
Changes.push(change); | ||
} | ||
} | ||
return (next) => async (args) => { | ||
const { ChangeBatch } = args.input; | ||
const Changes = []; | ||
for (const change of ChangeBatch.Changes) { | ||
const { AliasTarget } = change.ResourceRecordSet; | ||
if (AliasTarget) { | ||
Changes.push({ | ||
...change, | ||
ResourceRecordSet: { | ||
...change.ResourceRecordSet, | ||
AliasTarget: { | ||
...AliasTarget, | ||
HostedZoneId: AliasTarget.HostedZoneId.replace(constants_1.IDENTIFIER_PREFIX_PATTERN, ""), | ||
}, | ||
}, | ||
}); | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (_b && !_b.done && (_c = _a.return)) _c.call(_a); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
else { | ||
Changes.push(change); | ||
} | ||
return [2 /*return*/, next(tslib_1.__assign(tslib_1.__assign({}, args), { input: tslib_1.__assign(tslib_1.__assign({}, args.input), { ChangeBatch: tslib_1.__assign(tslib_1.__assign({}, ChangeBatch), { Changes: Changes }) }) }))]; | ||
} | ||
return next({ | ||
...args, | ||
input: { | ||
...args.input, | ||
ChangeBatch: { | ||
...ChangeBatch, | ||
Changes, | ||
}, | ||
}, | ||
}); | ||
}); }; }; | ||
}; | ||
} | ||
@@ -44,7 +46,7 @@ exports.changeResourceRecordSetsMiddleware = changeResourceRecordSetsMiddleware; | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
exports.getChangeResourceRecordSetsPlugin = function (unused) { return ({ | ||
applyToStack: function (clientStack) { | ||
exports.getChangeResourceRecordSetsPlugin = (unused) => ({ | ||
applyToStack: (clientStack) => { | ||
clientStack.add(changeResourceRecordSetsMiddleware(), exports.changeResourceRecordSetsMiddlewareOptions); | ||
}, | ||
}); }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlLXJlc291cmNlLXJlY29yZC1zZXRzLmpzIiwic291cmNlUm9vdC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c1BsdWdpbiA9ICh1bnVzZWQ6IGFueSk6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGQoY2hhbmdlUmVzb3VyY2VSZWNvcmRTZXRzTWlkZGxld2FyZSgpLCBjaGFuZ2VSZXNvdXJjZVJlY29yZFNldHNNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var id_normalizer_1 = require("./id-normalizer"); | ||
var prefixedProps = ["/hostedzone/ID", "/change/ID", "/delegationset/ID"]; | ||
var idParams = ["DelegationSetId", "HostedZoneId", "Id"]; | ||
describe("idNormalizerMiddleware", function () { | ||
var e_1, _a; | ||
var _loop_1 = function (paramName) { | ||
var e_2, _a; | ||
var _loop_2 = function (prefixed) { | ||
it("should strip the prefix from the " + paramName + " parameter", function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () { | ||
var next, input, handler; | ||
var _a, _b; | ||
return tslib_1.__generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
next = jest.fn(); | ||
input = (_a = {}, _a[paramName] = prefixed, _a); | ||
handler = id_normalizer_1.idNormalizerMiddleware()(next, {}); | ||
return [4 /*yield*/, handler({ input: input })]; | ||
case 1: | ||
_c.sent(); | ||
expect(next.mock.calls.length).toBe(1); | ||
expect(next.mock.calls[0][0]).toEqual({ | ||
input: (_b = {}, _b[paramName] = "ID", _b), | ||
}); | ||
return [2 /*return*/]; | ||
} | ||
const id_normalizer_1 = require("./id-normalizer"); | ||
const prefixedProps = ["/hostedzone/ID", "/change/ID", "/delegationset/ID"]; | ||
const idParams = ["DelegationSetId", "HostedZoneId", "Id"]; | ||
describe("idNormalizerMiddleware", () => { | ||
for (const paramName of idParams) { | ||
for (const prefixed of prefixedProps) { | ||
it(`should strip the prefix from the ${paramName} parameter`, async () => { | ||
const next = jest.fn(); | ||
const input = { [paramName]: prefixed }; | ||
const handler = id_normalizer_1.idNormalizerMiddleware()(next, {}); | ||
await handler({ input }); | ||
expect(next.mock.calls.length).toBe(1); | ||
expect(next.mock.calls[0][0]).toEqual({ | ||
input: { [paramName]: "ID" }, | ||
}); | ||
}); }); | ||
}; | ||
try { | ||
for (var prefixedProps_1 = (e_2 = void 0, tslib_1.__values(prefixedProps)), prefixedProps_1_1 = prefixedProps_1.next(); !prefixedProps_1_1.done; prefixedProps_1_1 = prefixedProps_1.next()) { | ||
var prefixed = prefixedProps_1_1.value; | ||
_loop_2(prefixed); | ||
} | ||
}); | ||
} | ||
catch (e_2_1) { e_2 = { error: e_2_1 }; } | ||
finally { | ||
try { | ||
if (prefixedProps_1_1 && !prefixedProps_1_1.done && (_a = prefixedProps_1.return)) _a.call(prefixedProps_1); | ||
} | ||
finally { if (e_2) throw e_2.error; } | ||
} | ||
}; | ||
try { | ||
for (var idParams_1 = tslib_1.__values(idParams), idParams_1_1 = idParams_1.next(); !idParams_1_1.done; idParams_1_1 = idParams_1.next()) { | ||
var paramName = idParams_1_1.value; | ||
_loop_1(paramName); | ||
} | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (idParams_1_1 && !idParams_1_1.done && (_a = idParams_1.return)) _a.call(idParams_1); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
} | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWQtbm9ybWFsaXplci1zcGVjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2lkLW5vcm1hbGl6ZXItc3BlYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxpREFBeUQ7QUFFekQsSUFBTSxhQUFhLEdBQUcsQ0FBQyxnQkFBZ0IsRUFBRSxZQUF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gICAgICBjb25zdCBpbnB1dCA9IHsgW3BhcmFtTmFtZV06IHByZWZpeGVkIH07XG5cbiAgICAgICAgY29uc3QgaGFuZGxlciA9IGlkTm9ybWFsaXplck1pZGRsZXdhcmUoKShuZXh0LCB7fSBhcyBhbnkpO1xuXG4gICAgICAgIGF3YWl0IGhhbmRsZXIoeyBpbnB1dCB9KTtcblxuICAgICAgICBleHBlY3QobmV4dC5tb2NrLmNhbGxzLmxlbmd0aCkudG9CZSgxKTtcbiAgICAgICAgZXhwZWN0KG5leHQubW9jay5jYWxsc1swXVswXSkudG9FcXVhbCh7XG4gICAgICAgICAgaW5wdXQ6IHsgW3BhcmFtTmFtZV06IFwiSURcIiB9LFxuICAgICAgICB9KTtcbiAgICAgIH0pO1xuICAgIH1cbiAgfVxufSk7XG4iXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getIdNormalizerPlugin = exports.idNormalizerMiddlewareOptions = exports.idNormalizerMiddleware = void 0; | ||
var tslib_1 = require("tslib"); | ||
var constants_1 = require("./constants"); | ||
var IDENTIFIER_PARAMETERS = ["DelegationSetId", "HostedZoneId", "Id"]; | ||
const constants_1 = require("./constants"); | ||
const IDENTIFIER_PARAMETERS = ["DelegationSetId", "HostedZoneId", "Id"]; | ||
function idNormalizerMiddleware() { | ||
var _this = this; | ||
return function (next) { return function (args) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
var input, IDENTIFIER_PARAMETERS_1, IDENTIFIER_PARAMETERS_1_1, paramName, param; | ||
var e_1, _a; | ||
return tslib_1.__generator(this, function (_b) { | ||
input = tslib_1.__assign({}, args.input); | ||
try { | ||
for (IDENTIFIER_PARAMETERS_1 = tslib_1.__values(IDENTIFIER_PARAMETERS), IDENTIFIER_PARAMETERS_1_1 = IDENTIFIER_PARAMETERS_1.next(); !IDENTIFIER_PARAMETERS_1_1.done; IDENTIFIER_PARAMETERS_1_1 = IDENTIFIER_PARAMETERS_1.next()) { | ||
paramName = IDENTIFIER_PARAMETERS_1_1.value; | ||
param = input[paramName]; | ||
if (param) { | ||
input[paramName] = param.replace(constants_1.IDENTIFIER_PREFIX_PATTERN, ""); | ||
} | ||
} | ||
return (next) => async (args) => { | ||
const input = { ...args.input }; | ||
for (const paramName of IDENTIFIER_PARAMETERS) { | ||
const param = input[paramName]; | ||
if (param) { | ||
input[paramName] = param.replace(constants_1.IDENTIFIER_PREFIX_PATTERN, ""); | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (IDENTIFIER_PARAMETERS_1_1 && !IDENTIFIER_PARAMETERS_1_1.done && (_a = IDENTIFIER_PARAMETERS_1.return)) _a.call(IDENTIFIER_PARAMETERS_1); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
} | ||
return [2 /*return*/, next(tslib_1.__assign(tslib_1.__assign({}, args), { input: input }))]; | ||
} | ||
return next({ | ||
...args, | ||
input, | ||
}); | ||
}); }; }; | ||
}; | ||
} | ||
@@ -41,7 +28,7 @@ exports.idNormalizerMiddleware = idNormalizerMiddleware; | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
exports.getIdNormalizerPlugin = function (unused) { return ({ | ||
applyToStack: function (clientStack) { | ||
exports.getIdNormalizerPlugin = (unused) => ({ | ||
applyToStack: (clientStack) => { | ||
clientStack.add(idNormalizerMiddleware(), exports.idNormalizerMiddlewareOptions); | ||
}, | ||
}); }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWQtbm9ybWFsaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pZC1ub3JtYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFVQSx5Q0FBd0Q7QUFReEQsSUFBTSxxQkFBcUIsR0FBa0MsQ0FBQyxpQkFBaUIsRUFBRSxjQUFjLEVBQUUsSUFBSSxDQUFDLENBQU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IChjb25zdCBwYXJhbU5hbWUgb2YgSURFTlRJRklFUl9QQVJBTUVURVJTKSB7XG4gICAgICBjb25zdCBwYXJhbSA9IGlucHV0W3BhcmFtTmFtZV07XG4gICAgICBpZiAocGFyYW0pIHtcbiAgICAgICAgaW5wdXRbcGFyYW1OYW1lXSA9IHBhcmFtLnJlcGxhY2UoSURFTlRJRklFUl9QUkVGSVhfUEFUVEVSTiwgXCJcIik7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIG5leHQoe1xuICAgICAgLi4uYXJncyxcbiAgICAgIGlucHV0LFxuICAgIH0pO1xuICB9O1xufVxuXG5leHBvcnQgY29uc3QgaWROb3JtYWxpemVyTWlkZGxld2FyZU9wdGlvbnM6IEluaXRpYWxpemVIYW5kbGVyT3B0aW9ucyA9IHtcbiAgc3RlcDogXCJpbml0aWFsaXplXCIsXG4gIHRhZ3M6IFtcIlJPVVRFNTNfSURTXCJdLFxuICBuYW1lOiBcImlkTm9ybWFsaXplck1pZGRsZXdhcmVcIixcbn07XG5cbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tdW51c2VkLXZhcnNcbmV4cG9ydCBjb25zdCBnZXRJZE5vcm1hbGl6ZXJQbHVnaW4gPSAodW51c2VkOiBhbnkpOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogKGNsaWVudFN0YWNrKSA9PiB7XG4gICAgY2xpZW50U3RhY2suYWRkKGlkTm9ybWFsaXplck1pZGRsZXdhcmUoKSwgaWROb3JtYWxpemVyTWlkZGxld2FyZU9wdGlvbnMpO1xuICB9LFxufSk7XG4iXX0= | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWQtbm9ybWFsaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pZC1ub3JtYWxp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
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./change-resource-record-sets"), exports); | ||
tslib_1.__exportStar(require("./id-normalizer"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsd0VBQThDO0FBQzlDLDBEQUFnQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NoYW5nZS1yZXNvdXJjZS1yZWNvcmQtc2V0c1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vaWQtbm9ybWFsaXplclwiO1xuIl19 |
{ | ||
"name": "@aws-sdk/middleware-sdk-route53", | ||
"version": "1.0.0-gamma.8", | ||
"version": "1.0.0-rc.1", | ||
"scripts": { | ||
@@ -21,3 +21,3 @@ "prepublishOnly": "yarn build:cjs && yarn build:es", | ||
"dependencies": { | ||
"@aws-sdk/types": "1.0.0-gamma.7", | ||
"@aws-sdk/types": "1.0.0-rc.1", | ||
"tslib": "^1.8.0" | ||
@@ -29,3 +29,6 @@ }, | ||
"typescript": "~4.0.2" | ||
}, | ||
"engines": { | ||
"node": ">= 10.0.0" | ||
} | ||
} |
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"strict": true, | ||
"sourceMap": false, | ||
"downlevelIteration": true, | ||
"importHelpers": true, | ||
"noEmitHelpers": true, | ||
"lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], | ||
"rootDir": "./src", | ||
"outDir": "./dist/cjs", | ||
"inlineSourceMap": true, | ||
"inlineSources": true, | ||
"baseUrl": "." | ||
@@ -15,0 +6,0 @@ }, |
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"strict": true, | ||
"sourceMap": false, | ||
"downlevelIteration": true, | ||
"importHelpers": true, | ||
"noEmitHelpers": true, | ||
"lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], | ||
"rootDir": "./src", | ||
"outDir": "./dist/es", | ||
"inlineSourceMap": true, | ||
"inlineSources": true, | ||
"baseUrl": "." | ||
@@ -15,0 +7,0 @@ }, |
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
62354
473
+ Added@aws-sdk/types@1.0.0-rc.1(transitive)
- Removed@aws-sdk/types@1.0.0-gamma.7(transitive)
Updated@aws-sdk/types@1.0.0-rc.1