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

wiki-plugin-assets

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wiki-plugin-assets - npm Package Compare versions

Comparing version 0.2.5 to 0.3.0

client/about-demo.html

15

client/assets.js

@@ -125,3 +125,3 @@ "use strict";

fetch_list = function fetch_list($item, item, $report, assets, remote) {
fetch_list = function fetch_list($item, item, $report, assets, remote, assetsData) {
var assetsURL, link, render, requestSite, trouble;

@@ -146,2 +146,3 @@ requestSite = remote != null ? remote : null;

var file, files;
assetsData[assets] || (assetsData[assets] = {});

@@ -157,2 +158,3 @@ if (data.error) {

files = data.files;
assetsData[assets][assetsURL] = files;

@@ -204,3 +206,3 @@ if (files.length === 0) {

emit = function emit($item, item) {
var $report, assets, i, len, ref, results, site, uploader;
var $report, assets, assetsData, i, len, ref, results, site, uploader;

@@ -216,2 +218,9 @@ uploader = function uploader() {

$item.append("<div style=\"background-color:#eee;padding:15px; margin-block-start:1em; margin-block-end:1em;\">\n <dl style=\"margin:0;color:gray\"></dl>\n ".concat(uploader(), "\n</div>"));
assetsData = {};
$item.addClass('assets-source');
$item.get(0).assetsData = function () {
return assetsData;
};
assets = item.text.match(/([\w\/-]*)/)[1];

@@ -224,3 +233,3 @@ ref = context($item);

$report = $item.find('dl').prepend("<dt><img width=12 src=\"".concat(wiki.site(site).flag(), "\"> ").concat(site, "</dt>\n<dd style=\"margin:8px;\"></dd>"));
results.push(fetch_list($item, item, $report.find('dd:first'), assets, site));
results.push(fetch_list($item, item, $report.find('dd:first'), assets, site, assetsData));
}

@@ -227,0 +236,0 @@

2

package.json
{
"name": "wiki-plugin-assets",
"version": "0.2.5",
"version": "0.3.0",
"description": "Federated Wiki - Assets Plugin",

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

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