Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appsync-template-tester

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appsync-template-tester - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

2

dist/index.d.ts
export default class Parser {
private template;
private internalStash;
get stash(): Record<string, string>;
constructor(template: string);

@@ -4,0 +6,0 @@ /**

@@ -18,4 +18,8 @@ "use strict";

constructor(template) {
this.internalStash = {};
this.template = template;
}
get stash() {
return this.internalStash;
}
/**

@@ -26,2 +30,4 @@ * Resolve as a string

const clonedContext = JSON.parse(JSON.stringify(context));
if (!clonedContext.stash)
clonedContext.stash = {};
clonedContext.args = clonedContext.arguments;

@@ -48,2 +54,4 @@ const util = {

const res = velocityjs_1.render(this.template, params, macros);
// Keep stash value
this.internalStash = clonedContext.stash;
// Remove preceding and trailing whitespace

@@ -76,2 +84,2 @@ const resWithoutWhitespace = res

exports.default = Parser;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUEsZ0RBQWdEO0FBQ2hELDJDQUFvQztBQUNwQyxpREFBbUM7QUFDbkMsa0RBQW9DO0FBQ3BDLDBEQUE0QztBQUM1QyxnREFBa0M7QUFFbEMsTUFBcUIsTUFBTTtJQUd6QixZQUFZLFFBQWdCO1FBQzFCLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO0lBQzNCLENBQUM7SUFFRDs7T0FFRztJQUNJLE9BQU8sQ0FBQyxPQUFnQixFQUFFLGNBQXVCO1FBQ3RELE1BQU0sYUFBYSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDL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sb2NrTmFtZTogc3RyaW5nXTogYm9vbGVhbiB9O1xuIl19

@@ -74,2 +74,18 @@ "use strict";

});
describe("$context.stash keeps data", () => {
test("Keep initial data", () => {
const vtl = "";
const parser = new index_1.default(vtl);
parser.resolve({
stash: { key: "value" },
});
expect(parser.stash).toStrictEqual({ key: "value" });
});
test("Keep resolved data", () => {
const vtl = '$ctx.stash.put("key", "value")';
const parser = new index_1.default(vtl);
parser.resolve({});
expect(parser.stash).toStrictEqual({ key: "value" });
});
});
describe("Typecasting works as expected", () => {

@@ -125,2 +141,2 @@ test("Boolean false", () => {

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0cy9pbmRleC50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEscURBQThCO0FBRTlCLElBQUksQ0FBQyw4QkFBOEIsRUFBRSxHQUFHLEVBQUU7SUFDeEMsTUFBTSxHQUFHLEdBQUcsK0JBQStCLENBQUM7SUFDNUMsTUFBTSxNQUFNLEdBQUcsSUFBSSxlQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDL0IsTUFBTSxNQUFNLEdBQUcsTUFBTSxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUNsQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUMsT0FBTyxDQUFDLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxDQUFDLENBQUM7QUFDekMsQ0FBQyxDQUFDLENBQUM7QUFFSCxJQUFJLENBQUMsc0JBQXNCLEVBQUUsR0FBRyxFQUFFO0lBQ2hDLE1BQU0sR0FBRyxHQUFHOzs7bUJBR0ssQ0FBQztJQUNsQixNQUFNLE1BQU0sR0FBRyxJQUFJLGVBQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztJQU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YXJzZXIodnRsKTtcbiAgICBjb25zdCByZXMgPSBwYXJzZXIucmVzb2x2ZSh7fSk7XG4gICAgZXhwZWN0KHJlcykudG9FcXVhbChbMSwgMiwgM10pO1xuICB9KTtcblxuICB0ZXN0KFwiU3RyaW5nXCIsICgpID0+IHtcbiAgICBjb25zdCB2dGwgPSBcImFiYzEyM1wiO1xuICAgIGNvbnN0IHBhcnNlciA9IG5ldyBQYXJzZXIodnRsKTtcbiAgICBjb25zdCByZXMgPSBwYXJzZXIucmVzb2x2ZSh7fSk7XG4gICAgZXhwZWN0KHJlcykudG9CZShcImFiYzEyM1wiKTtcbiAgfSk7XG59KTtcbiJdfQ==

2

package.json

@@ -25,3 +25,3 @@ {

"license": "MIT",
"version": "1.1.8",
"version": "1.1.9",
"main": "dist/index.js",

@@ -28,0 +28,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc