Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Mar 12, 2020
1 parent 8edfcd8 commit 6af494d
Show file tree
Hide file tree
Showing 80 changed files with 284 additions and 278 deletions.
2 changes: 1 addition & 1 deletion fixtures/components-isolated-state/alert.edge
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{ username || 'Guest' }}
{{ username || "Guest" }}
6 changes: 3 additions & 3 deletions fixtures/components-isolated-state/compiled.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
out += template.renderWithState('components-isolated-state/alert', {}, { main: function () { return '' } });
out += template.renderWithState("components-isolated-state/alert", {}, { main: function () { return "" } });
} catch (error) {
ctx.reThrow(error);
}
Expand Down
2 changes: 1 addition & 1 deletion fixtures/components-isolated-state/index.edge
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@component('components-isolated-state/alert')
@component("components-isolated-state/alert")
@endcomponent
26 changes: 13 additions & 13 deletions fixtures/components-named-slots/compiled.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
out += template.renderWithState('components-named-slots/alert', {}, { main: function () {
let slot_main = '';
out += template.renderWithState("components-named-slots/alert", {}, { main: function () {
let slot_main = "";
try {
slot_main += ' Hello ';
slot_main += " Hello ";
ctx.$lineNumber = 2;
slot_main += `${ctx.escape(ctx.resolve('name'))}`;
slot_main += ' line 1';
slot_main += '\n';
slot_main += '\n';
slot_main += ' Hello ';
slot_main += " line 1";
slot_main += "\n";
slot_main += "\n";
slot_main += " Hello ";
ctx.$lineNumber = 6;
slot_main += `${ctx.escape(ctx.resolve('name'))}`;
slot_main += ' line 2';
slot_main += " line 2";
} catch (error) {
ctx.reThrow(error);
}
return slot_main;
}, 'heading': function () {
let slot_4 = '';
}, "heading": function () {
let slot_4 = "";
try {
slot_4 += ' This is title';
slot_4 += " This is title";
} catch (error) {
ctx.reThrow(error);
}
Expand Down
4 changes: 2 additions & 2 deletions fixtures/components-named-slots/index.edge
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@component('components-named-slots/alert')
@component("components-named-slots/alert")
Hello {{ name }} line 1
@slot('heading')
@slot("heading")
This is title
@endslot
Hello {{ name }} line 2
Expand Down
4 changes: 2 additions & 2 deletions fixtures/components-partials/alert.edge
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@include('components-partials/partial')
@include("components-partials/partial")

{{ $slots.main() }}
{{ $slots.main() }}
12 changes: 6 additions & 6 deletions fixtures/components-partials/compiled.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
out += template.renderWithState('components-partials/alert', { username: 'virk' }, { main: function () {
let slot_main = '';
out += template.renderWithState("components-partials/alert", { username: "virk" }, { main: function () {
let slot_main = "";
try {
slot_main += ' Hello ';
slot_main += " Hello ";
ctx.$lineNumber = 2;
slot_main += `${ctx.escape(ctx.resolve('username') || 'Guest')}`;
slot_main += `${ctx.escape(ctx.resolve('username') || "Guest")}`;
} catch (error) {
ctx.reThrow(error);
}
Expand Down
4 changes: 2 additions & 2 deletions fixtures/components-partials/index.edge
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@component('components-partials/alert', username = 'virk')
Hello {{ username || 'Guest' }}
@component("components-partials/alert", username = "virk")
Hello {{ username || "Guest" }}
@endcomponent
10 changes: 5 additions & 5 deletions fixtures/components-props/compiled.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
out += template.renderWithState('components-props/alert', { 'title': 'H1' }, { main: function () {
let slot_main = '';
out += template.renderWithState("components-props/alert", { "title": "H1" }, { main: function () {
let slot_main = "";
try {
slot_main += 'Hello world';
slot_main += "Hello world";
} catch (error) {
ctx.reThrow(error);
}
Expand Down
2 changes: 1 addition & 1 deletion fixtures/components-props/index.edge
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@component('components-props/alert', { 'title': 'H1' })
@component("components-props/alert", { "title": "H1" })
Hello world
@endcomponent
4 changes: 2 additions & 2 deletions fixtures/components-slot-props/alert.edge
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Top level username is {{ username || 'Guest' }}
{{ $slots.title({ username: 'nikk' }) }}
Top level username is {{ username || "Guest" }}
{{ $slots.title({ username: "nikk" }) }}
14 changes: 7 additions & 7 deletions fixtures/components-slot-props/compiled.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
out += template.renderWithState('components-slot-props/alert', {}, { main: function () { return '' }, 'title': function (user) {
let slot_0 = '';
out += template.renderWithState("components-slot-props/alert", {}, { main: function () { return "" }, "title": function (user) {
let slot_0 = "";
try {
ctx.newFrame();
ctx.setOnFrame('user', user);
slot_0 += ' Hello ';
slot_0 += " Hello ";
ctx.$lineNumber = 3;
slot_0 += `${ctx.escape(ctx.resolve('user').username)}`;
slot_0 += '\n';
slot_0 += ' Hi ';
slot_0 += "\n";
slot_0 += " Hi ";
ctx.$lineNumber = 4;
slot_0 += `${ctx.escape(ctx.resolve('username'))}`;
ctx.removeFrame();
Expand Down
4 changes: 2 additions & 2 deletions fixtures/components-slot-props/index.edge
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@component('components-slot-props/alert')
@slot('title', user)
@component("components-slot-props/alert")
@slot("title", user)
Hello {{ user.username }}
Hi {{ username }}
@endslot
Expand Down
10 changes: 5 additions & 5 deletions fixtures/components-slots-partials/compiled.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
out += template.renderWithState('components-slots-partials/alert', {}, { main: function () {
let slot_main = '';
out += template.renderWithState("components-slots-partials/alert", {}, { main: function () {
let slot_main = "";
try {
ctx.$lineNumber = 2;
slot_main += `${template.renderInline('components-slots-partials/partial')(template, ctx)}`;
slot_main += `${template.renderInline("components-slots-partials/partial")(template, ctx)}`;
} catch (error) {
ctx.reThrow(error);
}
Expand Down
4 changes: 2 additions & 2 deletions fixtures/components-slots-partials/index.edge
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@component('components-slots-partials/alert')
@include('components-slots-partials/partial')
@component("components-slots-partials/alert")
@include("components-slots-partials/partial")
@endcomponent
10 changes: 5 additions & 5 deletions fixtures/components-state/compiled.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
out += template.renderWithState('components-state/alert', {}, { main: function () {
let slot_main = '';
out += template.renderWithState("components-state/alert", {}, { main: function () {
let slot_main = "";
try {
slot_main += ' Hello ';
slot_main += " Hello ";
ctx.$lineNumber = 2;
slot_main += `${ctx.escape(ctx.resolve('username'))}`;
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion fixtures/components-state/index.edge
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@component('components-state/alert')
@component("components-state/alert")
Hello {{ username }}
@endcomponent
10 changes: 5 additions & 5 deletions fixtures/components/compiled.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
out += template.renderWithState('components/alert', {}, { main: function () {
let slot_main = '';
out += template.renderWithState("components/alert", {}, { main: function () {
let slot_main = "";
try {
slot_main += ' Hello world';
slot_main += " Hello world";
} catch (error) {
ctx.reThrow(error);
}
Expand Down
2 changes: 1 addition & 1 deletion fixtures/components/index.edge
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@component('components/alert')
@component("components/alert")
Hello world
@endcomponent
10 changes: 5 additions & 5 deletions fixtures/debugger/compiled.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
debugger;
out += '';
out += '\n';
out += 'Hello';
out += "";
out += "\n";
out += "Hello";
} catch (error) {
ctx.reThrow(error);
}
Expand Down
30 changes: 15 additions & 15 deletions fixtures/each-loop-set/compiled.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
ctx.set('total', 0, false);
ctx.set("total", 0, false);
ctx.$lineNumber = 2;
ctx.set('grossPrice', 0, false);
ctx.set("grossPrice", 0, false);
ctx.$lineNumber = 3;
ctx.loop(ctx.resolve('items'), function (item, loop) {
ctx.newFrame();
ctx.setOnFrame('item', item);
ctx.setOnFrame('$loop', loop);
ctx.setOnFrame('key', loop.key);
ctx.$lineNumber = 4;
ctx.set('grossPrice', ctx.resolve('item').price * ctx.resolve('item').quantity, true);
ctx.set("grossPrice", ctx.resolve('item').price * ctx.resolve('item').quantity, true);
ctx.$lineNumber = 5;
ctx.set('total', ctx.resolve('total') + ctx.resolve('grossPrice'), false);
out += '';
out += '\n';
out += '- ';
ctx.set("total", ctx.resolve('total') + ctx.resolve('grossPrice'), false);
out += "";
out += "\n";
out += "- ";
ctx.$lineNumber = 7;
out += `${ctx.escape(ctx.resolve('item').name)}`;
out += ' x ';
out += " x ";
out += `${ctx.escape(ctx.resolve('item').quantity)}`;
out += ' = ';
out += " = ";
out += `${ctx.escape(ctx.resolve('grossPrice'))}`;
ctx.removeFrame();
});
out += '\n';
out += 'Total price = ';
out += "\n";
out += "Total price = ";
ctx.$lineNumber = 9;
out += `${ctx.escape(ctx.resolve('total'))}`;
out += '\n';
out += 'Gross price = ';
out += "\n";
out += "Gross price = ";
ctx.$lineNumber = 10;
out += `${ctx.escape(ctx.resolve('grossPrice'))}`;
} catch (error) {
Expand Down
8 changes: 4 additions & 4 deletions fixtures/each-loop-set/index.edge
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@set('total', 0)
@set('grossPrice', 0)
@set("total", 0)
@set("grossPrice", 0)
@each(item in items)
@set('grossPrice', item.price * item.quantity, true)
@set('total', total + grossPrice)
@set("grossPrice", item.price * item.quantity, true)
@set("total", total + grossPrice)

- {{ item.name }} x {{ item.quantity }} = {{ grossPrice }}
@endeach
Expand Down
8 changes: 4 additions & 4 deletions fixtures/each-tag-array/compiled.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
ctx.loop([{
username: 'virk'
username: "virk"
}], function (user, loop) {
ctx.newFrame();
ctx.setOnFrame('user', user);
ctx.setOnFrame('$loop', loop);
ctx.setOnFrame('key', loop.key);
out += ' - Hello ';
out += " - Hello ";
ctx.$lineNumber = 2;
out += `${ctx.escape(ctx.resolve('user').username)}`;
ctx.removeFrame();
Expand Down
2 changes: 1 addition & 1 deletion fixtures/each-tag-array/index.edge
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@each(user in [{ username: 'virk' }])
@each(user in [{ username: "virk" }])
- Hello {{ user.username }}
@endeach
10 changes: 5 additions & 5 deletions fixtures/each-tag-else/compiled.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
return (function (template, ctx) {
let out = '';
let out = "";
ctx.$lineNumber = 1;
ctx.$filename = '{{__dirname}}index.edge';
ctx.$filename = "{{__dirname}}index.edge";
try {
if(ctx.size(ctx.resolve('users'))) {
ctx.loop(ctx.resolve('users'), function (user, loop) {
ctx.newFrame();
ctx.setOnFrame('user', user);
ctx.setOnFrame('$loop', loop);
ctx.setOnFrame('key', loop.key);
out += ' - Hello ';
out += " - Hello ";
ctx.$lineNumber = 2;
out += `${ctx.escape(ctx.resolve('user').username)}`;
out += '\n';
out += "\n";
ctx.removeFrame();
});
} else {
out += ' No users found';
out += " No users found";
}
} catch (error) {
ctx.reThrow(error);
Expand Down
Loading

0 comments on commit 6af494d

Please sign in to comment.