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

@iannisz/node-cms

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iannisz/node-cms - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

2

compiler.js

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

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

{
"name": "@iannisz/node-cms",
"version": "0.1.2",
"version": "0.2.0",
"description": "Node CMS",

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = (function (props) { /* html */ return "\n<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\t\t<title>Admin Panel</title>\n\t\t<link rel=\"stylesheet\" href=\"/admin-panel/css/admin-panel.css\">\n\t\t<script src=\"https://cdn.tiny.cloud/1/35gu00zgn9zvj801hpmer2vfc7f2ga6dv076567qd0oprm61/tinymce/5/tinymce.min.js\" referrerpolicy=\"origin\"></script>\n\t\t<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js\"></script>\n\t\t<script src=\"/admin-panel/js/query-selector.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/js-dsa-lib.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/formatting.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/request.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/auth.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/popup.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/searchboxes.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/admin-panel.js\" charset=\"utf-8\"></script>\n\t</head>\n\t<body>\n\t\t<div class=\"app\">\n\t\t\t<div class=\"header\">\n\t\t\t\t<ul>\n\t\t\t\t\t<li class=\"back-button-desktop\"><img class=\"back-button\" src=\"/admin-panel/img/back.png\" alt=\"back\" title=\"back\" onclick=\"goBackInHistory()\"></li>\n\t\t\t\t\t<li><a class=\"logo\" href=\"/admin-panel/\">NodeCMS</a> <span id=\"version-number\">".concat(props.version, "</span></li>\n\t\t\t\t</ul>\n\t\t\t\t<ul>\n\t\t\t\t\t<li id=\"greeting\"></li>\n\t\t\t\t\t<li id=\"help-button\"><a href=\"/admin-panel/docs\">Help</a></li>\n\t\t\t\t\t<li id=\"logout-button\"><a onclick=\"logout()\">Logout</a></li>\n\t\t\t\t\t<li id=\"padlock\" onclick=\"togglePadlock()\">\n\t\t\t\t\t\t<img src=\"/admin-panel/img/locked-padlock-orange.png\" alt=\"padlock\" title=\"You are currently not authorised to make changes, click here to gain permission\">\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class=\"menu\">\n\t\t\t\t<ul>\n\t\t\t\t\t<li class=\"back-button-mobile\"><img class=\"back-button\" src=\"/admin-panel/img/back.png\" alt=\"back\" title=\"back\" onclick=\"goBackInHistory()\"></li>\n\t\t\t\t\t<li><a onclick=\"showPages()\">Pages</a></li>\n\t\t\t\t\t<li><a onclick=\"showDatabaseList()\">Databases</a></li>\n\t\t\t\t\t<li><a onclick=\"showFiles()\">Files</a></li>\n\t\t\t\t\t<li><a onclick=\"showUserManagement()\">Users</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class=\"main\"></div>\n\t\t</div>\n\t</body>\n</html>"); });
exports.default = (function (props) { /* html */ return "\n<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\t\t<title>Admin Panel</title>\n\t\t<link rel=\"stylesheet\" href=\"/admin-panel/css/admin-panel.css\">\n\t\t<script src=\"https://cdn.tiny.cloud/1/2gb6iwtbyyb1thm2k0ah0vmyy8k2ai1z2bvx0gh9ndhbv0ny/tinymce/6/tinymce.min.js\" referrerpolicy=\"origin\"></script>\n\t\t<script src=\"https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js\"></script>\n\t\t<script src=\"/admin-panel/js/query-selector.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/js-dsa-lib.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/formatting.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/request.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/auth.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/popup.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/searchboxes.js\" charset=\"utf-8\"></script>\n\t\t<script src=\"/admin-panel/js/admin-panel.js\" charset=\"utf-8\"></script>\n\t</head>\n\t<body>\n\t\t<div class=\"app\">\n\t\t\t<div class=\"header\">\n\t\t\t\t<ul>\n\t\t\t\t\t<li class=\"back-button-desktop\"><img class=\"back-button\" src=\"/admin-panel/img/back.png\" alt=\"back\" title=\"back\" onclick=\"goBackInHistory()\"></li>\n\t\t\t\t\t<li><a class=\"logo\" href=\"/admin-panel/\">NodeCMS</a> <span id=\"version-number\">".concat(props.version, "</span></li>\n\t\t\t\t</ul>\n\t\t\t\t<ul>\n\t\t\t\t\t<li id=\"greeting\"></li>\n\t\t\t\t\t<li id=\"help-button\"><a href=\"/admin-panel/docs\">Help</a></li>\n\t\t\t\t\t<li id=\"logout-button\"><a onclick=\"logout()\">Logout</a></li>\n\t\t\t\t\t<li id=\"padlock\" onclick=\"togglePadlock()\">\n\t\t\t\t\t\t<img src=\"/admin-panel/img/locked-padlock-orange.png\" alt=\"padlock\" title=\"You are currently not authorised to make changes, click here to gain permission\">\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class=\"menu\">\n\t\t\t\t<ul>\n\t\t\t\t\t<li class=\"back-button-mobile\"><img class=\"back-button\" src=\"/admin-panel/img/back.png\" alt=\"back\" title=\"back\" onclick=\"goBackInHistory()\"></li>\n\t\t\t\t\t<li><a onclick=\"showPages()\">Pages</a></li>\n\t\t\t\t\t<li><a onclick=\"showDatabaseList()\">Databases</a></li>\n\t\t\t\t\t<li><a onclick=\"showFiles()\">Files</a></li>\n\t\t\t\t\t<li><a onclick=\"showUserManagement()\">Users</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class=\"main\"></div>\n\t\t</div>\n\t</body>\n</html>"); });

@@ -15,3 +15,3 @@ export interface AdminPanelPageProps {

<link rel="stylesheet" href="/admin-panel/css/admin-panel.css">
<script src="https://cdn.tiny.cloud/1/35gu00zgn9zvj801hpmer2vfc7f2ga6dv076567qd0oprm61/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/2gb6iwtbyyb1thm2k0ah0vmyy8k2ai1z2bvx0gh9ndhbv0ny/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"></script>

@@ -18,0 +18,0 @@ <script src="/admin-panel/js/query-selector.js" charset="utf-8"></script>

@@ -16,3 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -19,0 +19,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

@@ -16,3 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -19,0 +19,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

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

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

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

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -55,9 +55,9 @@ if (y = 0, t) op = [op[0] & 2, t.value];

.then(function () { return __awaiter(void 0, void 0, void 0, function () {
var logFileId, readOffset, logFileStream, logFileStream_1, logFileStream_1_1, chunk, e_1_1, err_1;
var e_1, _a;
var _b;
return __generator(this, function (_c) {
switch (_c.label) {
var logFileId, readOffset, logFileStream, _a, logFileStream_1, logFileStream_1_1, chunk, e_1_1, err_1;
var _b, e_1, _c, _d;
var _e;
return __generator(this, function (_f) {
switch (_f.label) {
case 0:
_c.trys.push([0, 13, , 14]);
_f.trys.push([0, 13, , 14]);
logFileId = apache_js_workers_1.req.body.logFileId;

@@ -75,26 +75,30 @@ readOffset = apache_js_workers_1.req.body.readOffset;

});
_c.label = 1;
_f.label = 1;
case 1:
_c.trys.push([1, 6, 7, 12]);
logFileStream_1 = __asyncValues(logFileStream);
_c.label = 2;
_f.trys.push([1, 6, 7, 12]);
_a = true, logFileStream_1 = __asyncValues(logFileStream);
_f.label = 2;
case 2: return [4 /*yield*/, logFileStream_1.next()];
case 3:
if (!(logFileStream_1_1 = _c.sent(), !logFileStream_1_1.done)) return [3 /*break*/, 5];
chunk = logFileStream_1_1.value;
if (!(logFileStream_1_1 = _f.sent(), _b = logFileStream_1_1.done, !_b)) return [3 /*break*/, 5];
_d = logFileStream_1_1.value;
_a = false;
chunk = _d;
apache_js_workers_1.res.write(chunk);
_c.label = 4;
case 4: return [3 /*break*/, 2];
_f.label = 4;
case 4:
_a = true;
return [3 /*break*/, 2];
case 5: return [3 /*break*/, 12];
case 6:
e_1_1 = _c.sent();
e_1_1 = _f.sent();
e_1 = { error: e_1_1 };
return [3 /*break*/, 12];
case 7:
_c.trys.push([7, , 10, 11]);
if (!(logFileStream_1_1 && !logFileStream_1_1.done && (_a = logFileStream_1.return))) return [3 /*break*/, 9];
return [4 /*yield*/, _a.call(logFileStream_1)];
_f.trys.push([7, , 10, 11]);
if (!(!_a && !_b && (_c = logFileStream_1.return))) return [3 /*break*/, 9];
return [4 /*yield*/, _c.call(logFileStream_1)];
case 8:
_c.sent();
_c.label = 9;
_f.sent();
_f.label = 9;
case 9: return [3 /*break*/, 11];

@@ -109,6 +113,6 @@ case 10:

case 13:
err_1 = _c.sent();
err_1 = _f.sent();
// Send 500 error
apache_js_workers_1.res.statusCode = 500;
(0, apache_js_workers_1.log)('e', (_b = err_1.stack) !== null && _b !== void 0 ? _b : err_1);
(0, apache_js_workers_1.log)('e', (_e = err_1.stack) !== null && _e !== void 0 ? _e : err_1);
apache_js_workers_1.res.send('An internal server error occured while polling the compilation log');

@@ -115,0 +119,0 @@ return [3 /*break*/, 14];

{
"compilerOptions": {
"target": "ES5",
"watch": true,
"lib": [

@@ -6,0 +5,0 @@ "dom",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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