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

docs-renderer-vue2

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docs-renderer-vue2 - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

12

dist/docsRenderer.common.js

@@ -363,2 +363,6 @@ module.exports =

default: function () { return (/\[\^(\d*[a-zA-z]+\d*)\](?:(.+)\[\/\1\])*/g); }
},
ignoreCss: {
type: Array,
default: function () { return ([]); }
}

@@ -414,3 +418,9 @@ },

if ("element" in data) {
var nodeData = __assign(__assign({}, (data.style && { style: data.style })), (data.attrs && { attrs: data.attrs }));
var nodeData = __assign({}, (data.attrs && { attrs: data.attrs }));
if (data.style) {
nodeData.style = Object.fromEntries(Object.entries(data.style).filter(function (_a) {
var _b = __read(_a, 1), key = _b[0];
return !(context.props.ignoreCss.includes(key));
}));
}
return h(data.element, nodeData, fromContentArray(data.children));

@@ -417,0 +427,0 @@ }

@@ -372,2 +372,6 @@ (function webpackUniversalModuleDefinition(root, factory) {

default: function () { return (/\[\^(\d*[a-zA-z]+\d*)\](?:(.+)\[\/\1\])*/g); }
},
ignoreCss: {
type: Array,
default: function () { return ([]); }
}

@@ -423,3 +427,9 @@ },

if ("element" in data) {
var nodeData = __assign(__assign({}, (data.style && { style: data.style })), (data.attrs && { attrs: data.attrs }));
var nodeData = __assign({}, (data.attrs && { attrs: data.attrs }));
if (data.style) {
nodeData.style = Object.fromEntries(Object.entries(data.style).filter(function (_a) {
var _b = __read(_a, 1), key = _b[0];
return !(context.props.ignoreCss.includes(key));
}));
}
return h(data.element, nodeData, fromContentArray(data.children));

@@ -426,0 +436,0 @@ }

2

dist/docsRenderer.umd.min.js

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

(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["docsRenderer"]=e(require("vue")):t["docsRenderer"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="1c25")}({"1c25":function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,o=r("405b");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var u=function(){return u=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},u.apply(this,arguments)};function c(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{while((void 0===e||e-- >0)&&!(n=i.next()).done)u.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return u}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t}var a=r("8bbf"),p=r.n(a),s=p.a.extend({functional:!0,props:{content:{type:Array,required:!0,default:function(){return[]}},components:{type:Object,default:function(){return{}}},inlineSlotFormat:{type:RegExp,default:function(){return/\[\^(\d*[a-zA-z]+\d*)\](?:(.+)\[\/\1\])*/g}}},render:function(t,e){function r(r){var o,i;if("string"==typeof r){var a=r.matchAll(e.props.inlineSlotFormat),p=[];try{for(var s=c(a),d=s.next();!d.done;d=s.next()){var y=d.value;if(void 0!=y.index){var m=y[1],v=y[2];if(m in e.scopedSlots){var b=e.scopedSlots[m]({inner:v});if(b){var h=y.index,S=h+y[0].length;p.push({start:h,end:S,slot:b})}}}}}catch(w){o={error:w}}finally{try{d&&!d.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}if(!p.length)return r;var g=[],x=0;return p.sort((function(t,e){return t.start-e.start})).forEach((function(t){var e=t.start,n=t.end,o=t.slot;x!=e&&g.push(r.slice(x,e)),g.push.apply(g,l(o)),x=n})),x!=r.length&&g.push(r.slice(x)),g}if("element"in r){var j=u(u({},r.style&&{style:r.style}),r.attrs&&{attrs:r.attrs});return t(r.element,j,n(r.children))}if("component"in r){j={};if(!(r.component in e.props.components))return!1;if(r.props&&(j.props=r.props),r.slots){var O=Object.entries(r.slots).map((function(t){var e=f(t,2),r=e[0],o=e[1];return[r,function(){return n(o)}]}));j.scopedSlots=Object.fromEntries(O)}return t(e.props.components[r.component],j)}if("slot"in r&&r.slot in e.scopedSlots){b=e.scopedSlots[r.slot]({});if(b)return b}return!1}function n(t){return t.map((function(t){return r(t)})).flat(1).filter(Boolean)}return t("div",e.data,n(e.props.content))}});e["default"]=s},"405b":function(t,e,r){var n,o,i;(function(r,u){o=[],n=u,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,u=/@([^@]*):(\d+):(\d+)\s*$/gi,c=i.exec(d.stack)||u.exec(d.stack),f=c&&c[1]||!1,l=c&&c[2]||!1,a=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");f===a&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var s=0;s<p.length;s++){if("interactive"===p[s].readyState)return p[s];if(p[s].src===f)return p[s];if(f===a&&p[s].innerHTML&&p[s].innerHTML.trim()===o)return p[s]}return null}}return t}))},"8bbf":function(e,r){e.exports=t}})}));
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["docsRenderer"]=e(require("vue")):t["docsRenderer"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="1c25")}({"1c25":function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,o=r("405b");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var u=function(){return u=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},u.apply(this,arguments)};function c(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{while((void 0===e||e-- >0)&&!(n=i.next()).done)u.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return u}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t}var a=r("8bbf"),p=r.n(a),s=p.a.extend({functional:!0,props:{content:{type:Array,required:!0,default:function(){return[]}},components:{type:Object,default:function(){return{}}},inlineSlotFormat:{type:RegExp,default:function(){return/\[\^(\d*[a-zA-z]+\d*)\](?:(.+)\[\/\1\])*/g}},ignoreCss:{type:Array,default:function(){return[]}}},render:function(t,e){function r(r){var o,i;if("string"==typeof r){var a=r.matchAll(e.props.inlineSlotFormat),p=[];try{for(var s=c(a),d=s.next();!d.done;d=s.next()){var y=d.value;if(void 0!=y.index){var m=y[1],v=y[2];if(m in e.scopedSlots){var b=e.scopedSlots[m]({inner:v});if(b){var h=y.index,g=h+y[0].length;p.push({start:h,end:g,slot:b})}}}}}catch(w){o={error:w}}finally{try{d&&!d.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}if(!p.length)return r;var S=[],x=0;return p.sort((function(t,e){return t.start-e.start})).forEach((function(t){var e=t.start,n=t.end,o=t.slot;x!=e&&S.push(r.slice(x,e)),S.push.apply(S,l(o)),x=n})),x!=r.length&&S.push(r.slice(x)),S}if("element"in r){var j=u({},r.attrs&&{attrs:r.attrs});return r.style&&(j.style=Object.fromEntries(Object.entries(r.style).filter((function(t){var r=f(t,1),n=r[0];return!e.props.ignoreCss.includes(n)})))),t(r.element,j,n(r.children))}if("component"in r){j={};if(!(r.component in e.props.components))return!1;if(r.props&&(j.props=r.props),r.slots){var O=Object.entries(r.slots).map((function(t){var e=f(t,2),r=e[0],o=e[1];return[r,function(){return n(o)}]}));j.scopedSlots=Object.fromEntries(O)}return t(e.props.components[r.component],j)}if("slot"in r&&r.slot in e.scopedSlots){b=e.scopedSlots[r.slot]({});if(b)return b}return!1}function n(t){return t.map((function(t){return r(t)})).flat(1).filter(Boolean)}return t("div",e.data,n(e.props.content))}});e["default"]=s},"405b":function(t,e,r){var n,o,i;(function(r,u){o=[],n=u,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,u=/@([^@]*):(\d+):(\d+)\s*$/gi,c=i.exec(d.stack)||u.exec(d.stack),f=c&&c[1]||!1,l=c&&c[2]||!1,a=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");f===a&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var s=0;s<p.length;s++){if("interactive"===p[s].readyState)return p[s];if(p[s].src===f)return p[s];if(f===a&&p[s].innerHTML&&p[s].innerHTML.trim()===o)return p[s]}return null}}return t}))},"8bbf":function(e,r){e.exports=t}})}));
//# sourceMappingURL=docsRenderer.umd.min.js.map
{
"name": "docs-renderer-vue2",
"version": "0.1.2",
"version": "0.1.3",
"main": "./dist/docsRenderer.common.js",

@@ -5,0 +5,0 @@ "scripts": {

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