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

@atjson/renderer-plain-text

Package Overview
Dependencies
Maintainers
2
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atjson/renderer-plain-text - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

63

dist/commonjs/index.js
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
Object.defineProperty(exports, "__esModule", { value: true });
const renderer_hir_1 = require("@atjson/renderer-hir");
class PlainTextRenderer extends renderer_hir_1.default {
*renderAnnotation() {
let text = yield;
return text.join('');
var renderer_hir_1 = require("@atjson/renderer-hir");
var PlainTextRenderer = (function (_super) {
__extends(PlainTextRenderer, _super);
function PlainTextRenderer() {
return _super !== null && _super.apply(this, arguments) || this;
}
}
PlainTextRenderer.prototype.renderAnnotation = function () {
var text;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4];
case 1:
text = _a.sent();
return [2, text.join('')];
}
});
};
return PlainTextRenderer;
}(renderer_hir_1.default));
exports.default = PlainTextRenderer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx1REFBNEM7QUFFNUMsdUJBQXVDLFNBQVEsc0JBQVE7SUFDckQsQ0FBQyxnQkFBZ0I7UUFDZixJQUFJLElBQUksR0FBYSxLQUFLLENBQUM7UUFDM0IsTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDdkIsQ0FBQztDQUNGO0FBTEQsb0NBS0MifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEscURBQTRDO0FBRTVDO0lBQStDLHFDQUFRO0lBQXZEOztJQUtBLENBQUM7SUFKRSw0Q0FBZ0IsR0FBakI7Ozs7d0JBQ3VCLFdBQUs7O29CQUF0QixJQUFJLEdBQWEsU0FBSztvQkFDMUIsV0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFDOzs7S0FDdEI7SUFDSCx3QkFBQztBQUFELENBQUMsQUFMRCxDQUErQyxzQkFBUSxHQUt0RCJ9

10

package.json
{
"name": "@atjson/renderer-plain-text",
"version": "0.5.4",
"version": "0.5.5",
"description": "A brand new TypeScript library.",

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

"devDependencies": {
"@atjson/contenttype-html": "^0.5.4",
"@atjson/core": "^0.5.4",
"@atjson/hir": "^0.5.4",
"@atjson/contenttype-html": "^0.5.5",
"@atjson/core": "^0.5.5",
"@atjson/hir": "^0.5.5",
"parse5": "^3.0.2",

@@ -27,4 +27,4 @@ "tslint": "^5.7.0",

"dependencies": {
"@atjson/renderer-hir": "^0.5.4"
"@atjson/renderer-hir": "^0.5.5"
}
}
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