appsync-template-tester
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -24,2 +24,3 @@ "use strict"; | ||
const clonedContext = JSON.parse(JSON.stringify(context)); | ||
clonedContext.args = clonedContext.arguments; | ||
const util = { | ||
@@ -31,3 +32,3 @@ ...utilCore, | ||
const params = { | ||
context: { ...clonedContext, args: clonedContext.args }, | ||
context: clonedContext, | ||
ctx: clonedContext, | ||
@@ -65,2 +66,2 @@ util, | ||
exports.default = Parser; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUEsZ0RBQWdEO0FBQ2hELDJDQUFvQztBQUNwQyxpREFBbUM7QUFDbkMsa0RBQW9DO0FBQ3BDLDBEQUE0QztBQUU1QyxNQUFxQixNQUFNO0lBR3pCLFlBQVksUUFBZ0I7UUFDMUIsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7SUFDM0IsQ0FBQztJQUVEOztPQUVHO0lBQ0ksT0FBTyxDQUFDLE9BQWdCO1FBQzdCLE1BQU0sYUFBYSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDO1FBRTFELE1BQU0sSUFBSSxHQUFHO1lBQ1gsR0FBRyxRQUFRO1lBQ1gsSUFBSTtZQUNKLFFBQVE7U0FDVCxDQUFDO1FBRUYsTUFBTSxNQUFNLEdBQUc7WUFDYixPQUFPLEVBQUUsRUFBRSxHQUFHLGFBQWEsRUFBRSxJQUFJLEVBQUUsYUFBYSxDQUFDLElBQUksRUFBRTtZQUN2RCxHQUFHLEVBQUUsYUFBYTtZQUNsQixJQUFJO1lBQ0osS0FBSyxFQUFFLElBQUk7U0FDWixDQUFDO1FB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1iZXIpKSByZXR1cm4gcGFyc2VGbG9hdChyZXMpO1xuXG4gICAgLy8gVHlwZWNhc3QgSlNPTiB0byBPYmplY3RcbiAgICB0cnkge1xuICAgICAgcmV0dXJuIEpTT04ucGFyc2UocmVzKTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1lbXB0eVxuICAgIH0gY2F0Y2ggKGUpIHt9XG5cbiAgICAvLyBSZXR1cm4gYSBzdHJpbmcgb3RoZXJ3aXNlXG4gICAgcmV0dXJuIHJlc1dpdGhvdXRXaGl0ZXNwYWNlO1xuICB9XG59XG5cbmV4cG9ydCB0eXBlIENvbnRleHQgPSB7XG4gIGFyZ3VtZW50cz86IE9iamVjdDtcbiAgc291cmNlPzogT2JqZWN0O1xuICByZXN1bHQ/OiBPYmplY3Q7XG4gIGlkZW50aXR5PzogT2JqZWN0O1xuICByZXF1ZXN0PzogT2JqZWN0O1xuICBpbmZvPzogT2JqZWN0O1xufTtcblxuZXhwb3J0IHR5cGUgdmVsb2NpdHlQYXJhbXMgPSB7IFtibG9ja05hbWU6IHN0cmluZ106IGJvb2xlYW4gfTtcbiJdfQ== |
@@ -24,3 +24,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"main": "dist/index.js", | ||
@@ -27,0 +27,0 @@ "scripts": { |
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
99907
940