Socket
Socket
Sign inDemoInstall

@cnakazawa/copy-as-markdown

Package Overview
Dependencies
7
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 2.0.0

4

index.js

@@ -39,4 +39,4 @@ "use strict";

function useCopyAsMarkdown(markdownOptions, options) {
var ref = react_1.useRef(null);
return react_1.useCallback(function (element) {
var ref = (0, react_1.useRef)(null);
return (0, react_1.useCallback)(function (element) {
if (ref.current) {

@@ -43,0 +43,0 @@ ref.current.element.removeEventListener('copy', ref.current.listener);

{
"name": "@cnakazawa/copy-as-markdown",
"version": "1.2.0",
"version": "2.0.0",
"license": "MIT",

@@ -12,26 +12,25 @@ "main": "index.js",

],
"scripts": {
"prepack": "tsc && jest"
},
"dependencies": {
"turndown": "^7.0.0"
"turndown": "^7.1.1"
},
"peerDependencies": {
"react": "^17.0.0",
"react-dom": "^17.0.0"
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@testing-library/react": "^11.2.6",
"@testing-library/react-hooks": "^5.1.2",
"@types/jest": "^26.0.23",
"@types/node": "^15.0.1",
"@types/react": "^17.0.4",
"@types/turndown": "^5.0.0",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"ts-jest": "^26.5.5",
"typescript": "^4.2.4"
}
}
"@testing-library/react": "^13.3.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^28.1.6",
"@types/node": "^18.6.3",
"@types/react": "^18.0.15",
"@types/turndown": "^5.0.1",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.3",
"prettier": "^2.7.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"ts-jest": "^28.0.7",
"typescript": "^4.7.4"
},
"scripts": {}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc