New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ariestp

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ariestp - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

lib/ariestp.js

@@ -402,3 +402,3 @@ var path = require('path'),

code = code.substr(1);
src = src + "res.p.push(res._schedule(function (res) {"+code+"}));"
src = src + "res.p.push(res._schedule(function (res) {var aries = function(){ res.finish();};"+code+"}));"
}

@@ -405,0 +405,0 @@ else {

{
"name": "ariestp",
"description": "A Async Template for Node.js",
"version": "0.1.5",
"version": "0.1.6",
"license": "MIT",

@@ -6,0 +6,0 @@ "author": {

@@ -58,3 +58,3 @@ "use strict";

assert(renderStr === "<p>"'</p>");
console.log("sync str test ok");
console.log("escape sync str test ok");
callback();

@@ -77,6 +77,6 @@ })

aries.compile(syncStr, {data:"123"}, (err, renderStr, isUseCache) => {
aries.compile(syncStr, {data:"1234"}, (err, renderStr, isUseCache) => {
assert(!err);
assert(isUseCache);
assert(renderStr === "123");
assert(renderStr === "1234");
console.log("sync str test ok");

@@ -91,4 +91,7 @@ callback();

taskList.push(function(callback){
let syncStr = "<%? setTimeout(function(){ctx.data='123';res.finish();},ctx.timeout) %><%- ctx.data %>";
let syncStr = "<%? setTimeout(function(){ctx.data='123';aries();},ctx.timeout) %><%- ctx.data %>";
aries.compile(syncStr, {timeout:1000}, function(err, renderStr, isUseCache){
if(err) {
console.log(err.stack)
}
assert(!err);

@@ -118,6 +121,6 @@ assert(!isUseCache);

aries.compile(syncStr, {data:"123"}, (err, renderStr, isUseCache) => {
aries.compile(syncStr, {data:"1234"}, (err, renderStr, isUseCache) => {
assert(!err);
assert(isUseCache);
assert(renderStr === "123");
assert(renderStr === "1234");
console.log("include test ok");

@@ -180,6 +183,6 @@ callback();

aries.compile(syncStr, {data:"123"}, (err, renderStr, isUseCache) => {
aries.compile(syncStr, {data:"1234"}, (err, renderStr, isUseCache) => {
assert(!err);
assert(isUseCache);
assert(renderStr === "123");
assert(renderStr === "1234");
console.log("if else test ok");

@@ -199,6 +202,6 @@ callback();

aries.compile(syncStr, {data:10}, (err, renderStr, isUseCache) => {
aries.compile(syncStr, {data:5}, (err, renderStr, isUseCache) => {
assert(!err);
assert(isUseCache);
assert(renderStr === "123456789");
assert(renderStr === "1234");
console.log("for loop test ok");

@@ -224,6 +227,6 @@ callback();

aries.compileFile(tplPath, {data:10}, (err, renderStr, isUseCache) => {
aries.compileFile(tplPath, {data:20}, (err, renderStr, isUseCache) => {
assert(!err);
assert(isUseCache);
assert(renderStr === "20");
assert(renderStr === "40");
console.log("tpl async tpl test ok");

@@ -245,6 +248,6 @@ callback();

aries.compileFile(tplPath, {data:10}, (err, renderStr, isUseCache) => {
aries.compileFile(tplPath, {data:20}, (err, renderStr, isUseCache) => {
assert(!err);
assert(isUseCache);
assert(renderStr === "20");
assert(renderStr === "40");
console.log("tpl abs path tpl test ok");

@@ -251,0 +254,0 @@ callback();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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