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

docpad-plugin-gist

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-gist - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

3

Contributing.md

@@ -33,2 +33,5 @@ # Contributing

## Testing
### Setup for testing

@@ -35,0 +38,0 @@

13

out/gist.plugin.js

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

// Generated by CoffeeScript 1.4.0
// Generated by CoffeeScript 1.6.3
var __hasProp = {}.hasOwnProperty,

@@ -6,3 +6,3 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

module.exports = function(BasePlugin) {
var GistPlugin;
var GistPlugin, _ref;
return GistPlugin = (function(_super) {

@@ -14,3 +14,4 @@ var getGist;

function GistPlugin() {
return GistPlugin.__super__.constructor.apply(this, arguments);
_ref = GistPlugin.__super__.constructor.apply(this, arguments);
return _ref;
}

@@ -29,5 +30,5 @@

gist = gists[_i];
gistScript = gist.replace(/<gist>/g, "<script src='https://gist.github.com/");
if (gistScript.indexOf('.js') !== -1) {
gistScript = gistScript.replace(/<\/gist>/g, "'></script>");
gistScript = gist.replace(/<gist>/g, "<script src='https://gist.github.com/").replace(/\.js/, '');
if (gistScript.indexOf('?file=') !== -1) {
gistScript = gistScript.replace(/\?file=/, '.js?file=').replace(/<\/gist>/g, "'></script>");
} else {

@@ -34,0 +35,0 @@ gistScript = gistScript.replace(/<\/gist>/g, ".js'></script>");

{
"name": "docpad-plugin-gist",
"version": "2.1.0",
"version": "2.1.1",
"description": "Allows you to easily embed GitHub Gists into your DocPad documents",

@@ -36,3 +36,3 @@ "homepage": "http://docpad.org/plugin/gist",

"devDependencies": {
"coffee-script": "~1.4.0",
"coffee-script": "~1.6.2",
"docpad": ">=6.37 <7"

@@ -39,0 +39,0 @@ },

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