Socket
Socket
Sign inDemoInstall

koa-rtapi

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-rtapi - npm Package Compare versions

Comparing version 1.1.48 to 1.1.49

code/api/demo-coder.api.js

17

lib/coder.js

@@ -10,2 +10,3 @@ 'use strict';

const lines = [];
let next = false;

@@ -17,3 +18,10 @@ for (let i = 0; i < len; i++) {

if (i % 2 === 0) {
lines.push('$b.addStr("' + encodeURI(item) + '");');
const lineArr = item.split('\n');
for (const lineItem of lineArr) {
if (next) {
next = false;
continue;
}
lines.push('$b.addStr("' + encodeURI(lineItem) + '");');
}
continue;

@@ -29,8 +37,5 @@ }

case '#':
lines.pop();
lines.push(item.substr(1));
// 去掉下一行的换行
const next = arr[i + 1];
if (next && next.length > 0 && next.indexOf('\n') > -1) {
arr[i + 1] = next.replace('\n', '');
}
next = true;
break;

@@ -37,0 +42,0 @@ default:

{
"name": "koa-rtapi",
"version": "1.1.48",
"version": "1.1.49",
"description": "koa api in rtworld company",

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

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