asciidoctor / atom-asciidoc-assistant

⚛ AsciiDoc Assistant package for the Atom editor.
https://atom.io/packages/asciidoc-assistant
MIT License
9 stars 2 forks source link

Object.<anonymous> is deprecated. #21

Open FlorianDufour opened 3 years ago

FlorianDufour commented 3 years ago

Hello,

I got a warning on Atom 1.56.0. I give you for feature improvement of the code.

Use require("electron").clipboard instead of require("clipboard")

Object.<anonymous> (G:\Users\devfl\AppData\Local\atom\app-1.56.0\resources\app.asar\exports\clipboard.js:4:6)
Object.<anonymous> (G:\Users\devfl\AppData\Local\atom\app-1.56.0\resources\app.asar\exports\clipboard.js:11:3)
Module._compile (G:\Users\devfl\AppData\Local\atom\app-1.56.0\resources\app.asar\src\native-compile-cache.js:120:30)
Object..js (G:\Users\devfl\AppData\Local\atom\app-1.56.0\resources\app.asar\src\compile-cache.js:255:23)
Module.load (internal/modules/cjs/loader.js:815:32)
Module._load (internal/modules/cjs/loader.js:727:14)