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

md2vue

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md2vue - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

build-doc.js

22

dist/md2vue.common.js

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

if (relative === false) {
out += " target=\"blank\"";
out += " target=\"_blank\"";
}

@@ -76,2 +76,17 @@

function kebabCase (name) {
return name
.replace(/^[A-Z]/, function (m) { return m.toLowerCase(); })
.replace(
/([0-9a-zA-Z])[\b\s]*([0-9A-Z])/g,
function (m, g1, g2) { return (g1 + "-" + (g2.toLowerCase())); }
)
}
function pascalCase (name) {
return kebabCase(name)
.replace(/-([0-9a-zA-Z])/g, function (m, g1) { return g1.toUpperCase(); })
.replace(/^[a-z]/, function (m) { return m.toUpperCase(); })
}
var addESLint = function (code) { return ("/* eslint-disable */\n" + code + "\n"); };

@@ -109,3 +124,5 @@

return ("module.exports = (function (module) {\n" + compiled + "\n var exports = module.exports\n exports.name = \"" + componentName + "\"\n exports.methods = {\n beforeCreate: function () {\n const css = \"" + (css.replace(/\n/g, ' ')) + "\"\n if (css) {\n this._ic_ = insert(css)\n }\n },\n destroyed: function () {\n this._ic_ && this._ic_()\n }\n }\n module.exports.install = function (Vue) {\n Vue.component(exports.name, exports)\n }\n if (typeof window !== void 0 && window.Vue) {\n Vue.use(exports )\n }\n return module.exports;\n\n function insert(css) {\n var elem = document.createElement('style')\n elem.setAttribute('type', 'text/css')\n\n if ('textContent' in elem) {\n elem.textContent = css\n } else {\n elem.styleSheet.cssText = css\n }\n\n document.getElementsByTagName('head')[0].appendChild(elem)\n return function () {\n document.getElementsByTagName('head')[0].removeChild(elem)\n }\n }\n })({});\n")
componentName = kebabCase(componentName);
return ("/* eslint-disable */\nvar moduleExports = (function (module) {\n 'use strict';\n" + (indent(compiled.replace(/(\/\/\n\s*)+/g, ''), ' ')) + "\n var exports = module.exports\n exports.name = \"" + componentName + "\"\n exports.created = function () {\n const css = \"" + (css.replace(/\n/g, ' ')) + "\"\n if (css) {\n this.____ = insert(css)\n }\n }\n exports.destroyed = function () {\n this.____ && this.____()\n }\n module.exports.install = function (Vue) {\n Vue.component(exports.name, exports)\n }\n\n return module.exports;\n\n function insert(css) {\n var elem = document.createElement('style')\n elem.setAttribute('type', 'text/css')\n\n if ('textContent' in elem) {\n elem.textContent = css\n } else {\n elem.styleSheet.cssText = css\n }\n\n document.getElementsByTagName('head')[0].appendChild(elem)\n return function () {\n document.getElementsByTagName('head')[0].removeChild(elem)\n }\n }\n})({});\ntypeof exports === 'object' && typeof module !== 'undefined' && (module.exports = moduleExports);\ntypeof window !== void 0 && window.Vue && Vue.use(moduleExports);\nthis[\"" + (pascalCase(componentName)) + "\"] = moduleExports;\n")
};

@@ -158,2 +175,3 @@

lang = 'autoit';
require('prismjs/components/prism-autoit');
}

@@ -160,0 +178,0 @@ }

@@ -55,3 +55,3 @@ import marked from 'marked';

if (relative === false) {
out += " target=\"blank\"";
out += " target=\"_blank\"";
}

@@ -72,2 +72,17 @@

function kebabCase (name) {
return name
.replace(/^[A-Z]/, function (m) { return m.toLowerCase(); })
.replace(
/([0-9a-zA-Z])[\b\s]*([0-9A-Z])/g,
function (m, g1, g2) { return (g1 + "-" + (g2.toLowerCase())); }
)
}
function pascalCase (name) {
return kebabCase(name)
.replace(/-([0-9a-zA-Z])/g, function (m, g1) { return g1.toUpperCase(); })
.replace(/^[a-z]/, function (m) { return m.toUpperCase(); })
}
var addESLint = function (code) { return ("/* eslint-disable */\n" + code + "\n"); };

@@ -105,3 +120,5 @@

return ("module.exports = (function (module) {\n" + compiled + "\n var exports = module.exports\n exports.name = \"" + componentName + "\"\n exports.methods = {\n beforeCreate: function () {\n const css = \"" + (css.replace(/\n/g, ' ')) + "\"\n if (css) {\n this._ic_ = insert(css)\n }\n },\n destroyed: function () {\n this._ic_ && this._ic_()\n }\n }\n module.exports.install = function (Vue) {\n Vue.component(exports.name, exports)\n }\n if (typeof window !== void 0 && window.Vue) {\n Vue.use(exports )\n }\n return module.exports;\n\n function insert(css) {\n var elem = document.createElement('style')\n elem.setAttribute('type', 'text/css')\n\n if ('textContent' in elem) {\n elem.textContent = css\n } else {\n elem.styleSheet.cssText = css\n }\n\n document.getElementsByTagName('head')[0].appendChild(elem)\n return function () {\n document.getElementsByTagName('head')[0].removeChild(elem)\n }\n }\n })({});\n")
componentName = kebabCase(componentName);
return ("/* eslint-disable */\nvar moduleExports = (function (module) {\n 'use strict';\n" + (indent(compiled.replace(/(\/\/\n\s*)+/g, ''), ' ')) + "\n var exports = module.exports\n exports.name = \"" + componentName + "\"\n exports.created = function () {\n const css = \"" + (css.replace(/\n/g, ' ')) + "\"\n if (css) {\n this.____ = insert(css)\n }\n }\n exports.destroyed = function () {\n this.____ && this.____()\n }\n module.exports.install = function (Vue) {\n Vue.component(exports.name, exports)\n }\n\n return module.exports;\n\n function insert(css) {\n var elem = document.createElement('style')\n elem.setAttribute('type', 'text/css')\n\n if ('textContent' in elem) {\n elem.textContent = css\n } else {\n elem.styleSheet.cssText = css\n }\n\n document.getElementsByTagName('head')[0].appendChild(elem)\n return function () {\n document.getElementsByTagName('head')[0].removeChild(elem)\n }\n }\n})({});\ntypeof exports === 'object' && typeof module !== 'undefined' && (module.exports = moduleExports);\ntypeof window !== void 0 && window.Vue && Vue.use(moduleExports);\nthis[\"" + (pascalCase(componentName)) + "\"] = moduleExports;\n")
};

@@ -154,2 +171,3 @@

lang = 'autoit';
require('prismjs/components/prism-autoit');
}

@@ -156,0 +174,0 @@ }

12

package.json
{
"name": "md2vue",
"version": "2.0.5",
"version": "2.0.6",
"main": "./dist/md2vue.common.js",

@@ -21,2 +21,5 @@ "module": "dist/md2vue.esm.js",

"devDependencies": {
"jest": "^21.2.1",
"live-server": "^1.2.0",
"npm-run-all": "^4.1.2",
"rollup": "^0.47.4",

@@ -28,6 +31,9 @@ "rollup-plugin-buble": "^0.15.0",

"scripts": {
"start": "rollup -c rollup.config.js -w",
"start": "run-s build build-doc && run-p watch-build preview",
"watch-build": "rollup -c rollup.config.js -w",
"build": "rollup -c rollup.config.js",
"preview": "npm run build && node test/ ./docs && live-server ./docs"
"build-doc": "node build-doc",
"preview": "live-server ./docs",
"test": "jest"
}
}

@@ -9,2 +9,2 @@ # md2vue

See [test/index.js](./test/index.js)
See [here](https://angusfu.github.io/md2vue/doc.html) or [here](./test/common.md) ~

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