Socket
Socket
Sign inDemoInstall

jet-engine

Package Overview
Dependencies
331
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.8 to 1.3.9

18

__tests__/index.test.js

@@ -488,3 +488,3 @@ import { compress, render, register } from '../src';

const out = render(
'You are {@math key=age method="add" operand=5.5}',
'You are {@math key=age method="+" operand=5.5}',
{ age: 20 },

@@ -497,3 +497,3 @@ );

const out = render(
'You are {@math key=age method="subtract" operand=5.5}',
'You are {@math key=age method="-" operand=5.5}',
{ age: 20 },

@@ -506,3 +506,3 @@ );

const out = render(
'You are {@math key=age method="multiply" operand=2.5}',
'You are {@math key=age method="*" operand=2.5}',
{ age: 20 },

@@ -515,3 +515,3 @@ );

const out = render(
'You are {@math key=age method="divide" operand=4}',
'You are {@math key=age method="/" operand=4}',
{ age: 20 },

@@ -522,5 +522,13 @@ );

it('should support exponentiation', () => {
const out = render(
'Volume of cube is {@math key=size method="**" operand=3}',
{ size: 2 },
);
expect(out).toEqual('Volume of cube is 8');
});
it('should support modulus', () => {
const out = render(
'You are {@math key=age method="mod" operand=3}',
'You are {@math key=age method="%" operand=3}',
{ age: 20 },

@@ -527,0 +535,0 @@ );

{
"name": "jet-engine",
"version": "1.3.8",
"version": "1.3.9",
"description": "Jet engine, a very small yet powerful template engine",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc