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

c2s-ngx-dnd

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c2s-ngx-dnd - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

4

directives/dnd-draggable.js

@@ -65,6 +65,6 @@ import { Directive, Input, Output, ElementRef, HostListener, EventEmitter } from '@angular/core';

try {
event.dataTransfer.setData(mimeType, JSON.stringify(this.dndObject));
event.dataTransfer.setData(mimeType, this.dndObject);
}
catch (e) {
var data = JSON.stringify({ item: this.dndObject, type: this.dragState.itemType });
var data = { item: this.dndObject, type: this.dragState.itemType };
try {

@@ -71,0 +71,0 @@ event.dataTransfer.setData(EDGE_MIME_TYPE, data);

@@ -91,3 +91,3 @@ import { Directive, Input, Output, ElementRef, HostListener, EventEmitter } from '@angular/core';

try {
data = JSON.parse(event.dataTransfer.getData(mimeType));
data = event.dataTransfer.getData(mimeType);
}

@@ -94,0 +94,0 @@ catch (e) {

@@ -54,3 +54,3 @@ {

},
"version": "1.2.5"
"version": "1.2.6"
}
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