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

@textbus/core

Package Overview
Dependencies
Maintainers
1
Versions
344
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textbus/core - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

bundles/lib/editor-options.d.ts

@@ -12,4 +12,6 @@ import { Observable } from 'rxjs';

theme?: string;
/** 设置最大历史栈 */
/** 设置最大历史栈, 默认值为50个 */
historyStackSize?: number;
/** 设置记录历史的时间间隔,间隔期间内如有变化则会添加一次历史记录, 默认值为5000ms */
historySampleTime?: number;
/** 声明组件集合 */

@@ -16,0 +18,0 @@ components?: Array<Type<AbstractComponent>>;

@@ -107,3 +107,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

this.stopListen();
this.snapshotSubscription = this.rootComponent.onChange.pipe(sampleTime(5000)).subscribe(() => {
this.snapshotSubscription = this.rootComponent.onChange.pipe(sampleTime(this.options.historySampleTime || 5000)).subscribe(() => {
this.recordSnapshot();

@@ -110,0 +110,0 @@ });

@@ -12,5 +12,4 @@ import { VElement } from './core/_api';

text(text: string): string;
attrName(text: string): any;
attrValue(text: string): any;
symbolTransfer(text: string): string;
attrName(text: string): string;
attrValue(text: string): string;
};

@@ -17,0 +16,0 @@ private singleTagTest;

@@ -66,9 +66,3 @@ import { Renderer, VTextNode } from './core/_api';

attrName(text) {
return this.symbolTransfer(text.replace(/=/g, ''));
},
attrValue(text) {
return this.symbolTransfer(text);
},
symbolTransfer(text) {
return text.replace(/[><"'&/]/g, str => {
return text.replace(/[><"'&]/g, str => {
return {

@@ -79,8 +73,15 @@ '<': '&lt;',

"'": '&#x27;',
'&': '&amp;',
'/': '&#x2F;'
'&': '&amp;'
}[str];
});
},
attrValue(text) {
return text.replace(/[><"'&/]/g, str => {
return {
'"': '&quot;',
"'": '&#x27;'
}[str];
});
}
};
//# sourceMappingURL=output-translator.js.map
{
"name": "@textbus/core",
"version": "1.1.1",
"version": "1.1.2",
"description": "TextBus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",

@@ -5,0 +5,0 @@ "main": "./bundles/public-api.js",

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