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

@textcomplete/core

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textcomplete/core - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

1

dist/Dropdown.d.ts

@@ -14,2 +14,3 @@ import { EventEmitter } from "eventemitter3";

parent?: HTMLElement;
dynamicWidth?: boolean;
}

@@ -16,0 +17,0 @@ interface DropdownItemOption {

4

dist/Dropdown.js

@@ -167,3 +167,5 @@ "use strict";

if (cursorOffset.left) {
const browserWidth = doc.clientWidth;
const browserWidth = this.option.dynamicWidth
? doc.scrollWidth
: doc.clientWidth;
if (cursorOffset.left + elementWidth > browserWidth) {

@@ -170,0 +172,0 @@ cursorOffset.left = browserWidth - elementWidth;

{
"name": "@textcomplete/core",
"version": "0.1.5",
"version": "0.1.6",
"description": "Textcomplete core.",

@@ -40,3 +40,3 @@ "main": "dist/index.js",

},
"gitHead": "81c7b759d938d484e4176e5a001c68d9168d09e5"
"gitHead": "03b7bee368cea9812a3c4cf8403ea24c84ed9a0f"
}

@@ -17,2 +17,3 @@ import { EventEmitter } from "eventemitter3"

parent?: HTMLElement
dynamicWidth?: boolean
}

@@ -208,3 +209,5 @@

if (cursorOffset.left) {
const browserWidth = doc.clientWidth
const browserWidth = this.option.dynamicWidth
? doc.scrollWidth
: doc.clientWidth
if (cursorOffset.left + elementWidth > browserWidth) {

@@ -211,0 +214,0 @@ cursorOffset.left = browserWidth - elementWidth

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