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

@tiptap/extension-code

Package Overview
Dependencies
Maintainers
2
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-code - npm Package Compare versions

Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [2.0.0-alpha.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-code@2.0.0-alpha.2...@tiptap/extension-code@2.0.0-alpha.3) (2020-11-19)
**Note:** Version bump only for package @tiptap/extension-code
# [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-code@2.0.0-alpha.1...@tiptap/extension-code@2.0.0-alpha.2) (2020-11-19)

@@ -8,0 +16,0 @@

2

dist/tiptap-extension-code.bundle.umd.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tiptap/core")):"function"==typeof define&&define.amd?define(["exports","@tiptap/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-code"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";const o=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/gm,d=t.Mark.create({name:"code",defaultOptions:{HTMLAttributes:{}},excludes:"_",parseHTML:()=>[{tag:"code"}],renderHTML:({HTMLAttributes:e})=>["code",e,0],addCommands:()=>({setCode:()=>({commands:e})=>e.setMark("code"),toggleCode:()=>({commands:e})=>e.toggleMark("code"),unsetCode:()=>({commands:e})=>e.unsetMark("code")}),addKeyboardShortcuts(){return{"Mod-`":()=>this.editor.commands.toggleCode()}},addInputRules(){return[t.markInputRule(o,this.type)]},addPasteRules(){return[t.markPasteRule(o,this.type)]}});e.default=d,e.inputRegex=o,e.pasteRegex=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/gm,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tiptap/core")):"function"==typeof define&&define.amd?define(["exports","@tiptap/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-code"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";const o=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/gm,d=t.Mark.create({name:"code",defaultOptions:{HTMLAttributes:{}},excludes:"_",parseHTML:()=>[{tag:"code"}],renderHTML:({HTMLAttributes:e})=>["code",e,0],addCommands:()=>({setCode:()=>({commands:e})=>e.setMark("code"),toggleCode:()=>({commands:e})=>e.toggleMark("code"),unsetCode:()=>({commands:e})=>e.unsetMark("code")}),addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[t.markInputRule(o,this.type)]},addPasteRules(){return[t.markPasteRule(o,this.type)]}});e.default=d,e.inputRegex=o,e.pasteRegex=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/gm,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=tiptap-extension-code.bundle.umd.min.js.map

@@ -47,3 +47,3 @@ 'use strict';

return {
'Mod-`': () => this.editor.commands.toggleCode(),
'Mod-e': () => this.editor.commands.toggleCode(),
};

@@ -50,0 +50,0 @@ },

@@ -43,3 +43,3 @@ import { Mark, markInputRule, markPasteRule } from '@tiptap/core';

return {
'Mod-`': () => this.editor.commands.toggleCode(),
'Mod-e': () => this.editor.commands.toggleCode(),
};

@@ -46,0 +46,0 @@ },

@@ -47,3 +47,3 @@ (function (global, factory) {

return {
'Mod-`': () => this.editor.commands.toggleCode(),
'Mod-e': () => this.editor.commands.toggleCode(),
};

@@ -50,0 +50,0 @@ },

{
"name": "@tiptap/extension-code",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"homepage": "https://tiptap.dev",

@@ -24,5 +24,5 @@ "keywords": [

"peerDependencies": {
"@tiptap/core": "^2.0.0-alpha.0"
"@tiptap/core": "^2.0.0-alpha.6"
},
"gitHead": "c460fe130b4ed9d6f4fb3b8ab678c0e808301d6c"
"gitHead": "7966af0fec4e65f83d7e5a22ccb9fc420a9a6728"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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