New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tiptap-utils

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiptap-utils - npm Package Compare versions

Comparing version 1.8.3 to 1.8.4

33

dist/utils.common.js
/*!
* tiptap-utils v1.8.2
* (c) 2019 Scrumpy UG (limited liability)
* tiptap-utils v1.8.3
* (c) 2020 Scrumpy UG (limited liability)
* @license MIT

@@ -15,19 +15,32 @@ */

function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
return arr2;
}
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

@@ -34,0 +47,0 @@

/*!
* tiptap-utils v1.8.2
* (c) 2019 Scrumpy UG (limited liability)
* tiptap-utils v1.8.3
* (c) 2020 Scrumpy UG (limited liability)
* @license MIT

@@ -11,19 +11,32 @@ */

function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
return arr2;
}
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

@@ -30,0 +43,0 @@

/*!
* tiptap-utils v1.8.2
* (c) 2019 Scrumpy UG (limited liability)
* tiptap-utils v1.8.3
* (c) 2020 Scrumpy UG (limited liability)
* @license MIT

@@ -15,19 +15,32 @@ */

function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
return arr2;
}
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

@@ -34,0 +47,0 @@

/*!
* tiptap-utils v1.8.2
* (c) 2019 Scrumpy UG (limited liability)
* tiptap-utils v1.8.3
* (c) 2020 Scrumpy UG (limited liability)
* @license MIT

@@ -10,6 +10,6 @@ */

/*!
* tiptap-utils v1.8.2
* (c) 2019 Scrumpy UG (limited liability)
* tiptap-utils v1.8.3
* (c) 2020 Scrumpy UG (limited liability)
* @license MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prosemirror-utils")):"function"==typeof define&&define.amd?define(["exports","prosemirror-utils"],t):t((e=e||self).tiptapUtils={},e.prosemirrorUtils)}(this,(function(e,t){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}e.getMarkAttrs=function(e,t){var n=e.selection,o=n.from,i=n.to,a=[];e.doc.nodesBetween(o,i,(function(e){a=[].concat(r(a),r(e.marks))}));var f=a.find((function(e){return e.type.name===t.name}));return f?f.attrs:{}},e.getMarkRange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||!t)return!1;var r=e.parent.childAfter(e.parentOffset);if(!r.node)return!1;var n=r.node.marks.find((function(e){return e.type===t}));if(!n)return!1;for(var o=e.index(),i=e.start()+r.offset,a=o+1,f=i+r.node.nodeSize;o>0&&n.isInSet(e.parent.child(o-1).marks);)o-=1,i-=e.parent.child(o).nodeSize;for(;a<e.parent.childCount&&n.isInSet(e.parent.child(a).marks);)f+=e.parent.child(a).nodeSize,a+=1;return{from:i,to:f}},e.markIsActive=function(e,t){var r=e.selection,n=r.from,o=r.$from,i=r.to;return r.empty?!!t.isInSet(e.storedMarks||o.marks()):!!e.doc.rangeHasMark(n,i,t)},e.nodeEqualsType=function(e){var t=e.types,r=e.node;return Array.isArray(t)&&t.includes(r.type)||r.type===t},e.nodeIsActive=function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.findSelectedNodeOfType(r)(e.selection)||t.findParentNode((function(e){return e.type===r}))(e.selection);return Object.keys(n).length&&o?o.node.hasMarkup(r,n):!!o},Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("prosemirror-utils")):"function"==typeof define&&define.amd?define(["exports","prosemirror-utils"],r):r((e=e||self).tiptapUtils={},e.prosemirrorUtils)}(this,(function(e,r){"use strict";function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return n(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}e.getMarkAttrs=function(e,r){var n=e.selection,o=n.from,i=n.to,a=[];e.doc.nodesBetween(o,i,(function(e){a=[].concat(t(a),t(e.marks))}));var f=a.find((function(e){return e.type.name===r.name}));return f?f.attrs:{}},e.getMarkRange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||!r)return!1;var t=e.parent.childAfter(e.parentOffset);if(!t.node)return!1;var n=t.node.marks.find((function(e){return e.type===r}));if(!n)return!1;for(var o=e.index(),i=e.start()+t.offset,a=o+1,f=i+t.node.nodeSize;o>0&&n.isInSet(e.parent.child(o-1).marks);)o-=1,i-=e.parent.child(o).nodeSize;for(;a<e.parent.childCount&&n.isInSet(e.parent.child(a).marks);)f+=e.parent.child(a).nodeSize,a+=1;return{from:i,to:f}},e.markIsActive=function(e,r){var t=e.selection,n=t.from,o=t.$from,i=t.to;return t.empty?!!r.isInSet(e.storedMarks||o.marks()):!!e.doc.rangeHasMark(n,i,r)},e.nodeEqualsType=function(e){var r=e.types,t=e.node;return Array.isArray(r)&&r.includes(t.type)||t.type===r},e.nodeIsActive=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=function(e){return e.type===t},i=r.findSelectedNodeOfType(t)(e.selection)||r.findParentNode(o)(e.selection);return Object.keys(n).length&&i?i.node.hasMarkup(t,n):!!i},Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "tiptap-utils",
"version": "1.8.3",
"version": "1.8.4",
"description": "Utility functions for tiptap",

@@ -23,8 +23,8 @@ "homepage": "https://tiptap.scrumpy.io",

"dependencies": {
"prosemirror-model": "1.8.2",
"prosemirror-state": "1.3.2",
"prosemirror-model": "1.9.1",
"prosemirror-state": "1.3.3",
"prosemirror-tables": "1.0.0",
"prosemirror-utils": "0.9.6"
},
"gitHead": "ba35bbec68cc44627b4e7e99e953502f4c12e165"
"gitHead": "604453682157e0d9a159af812dbe2bb9527eff3e"
}
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