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

markmap-common

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markmap-common - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

22

dist/index.esm.js

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

/*! markmap-common v0.1.3 | MIT License */
import _extends from '@babel/runtime/helpers/esm/extends';
/*! markmap-common v0.1.4 | MIT License */
class Hook {

@@ -31,2 +29,20 @@ constructor() {

function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
function escapeHtml(html) {

@@ -33,0 +49,0 @@ return html.replace(/[&<"]/g, m => ({

34

dist/index.js

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

/*! markmap-common v0.1.3 | MIT License */
/*! markmap-common v0.1.4 | MIT License */
'use strict';

@@ -6,8 +6,2 @@

var _extends = require('@babel/runtime/helpers/extends');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
class Hook {

@@ -40,2 +34,20 @@ constructor() {

function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
function escapeHtml(html) {

@@ -99,3 +111,3 @@ return html.replace(/[&<"]/g, m => ({

if (item.type === 'stylesheet') {
return wrapHtml('link', null, _extends__default({
return wrapHtml('link', null, _extends({
rel: 'stylesheet'

@@ -252,3 +264,3 @@ }, item.data));

document.head.append(createElement('script', _extends__default({}, item.data, {
document.head.append(createElement('script', _extends({}, item.data, {
onload: resolve,

@@ -277,3 +289,3 @@ onerror: reject

} else if (item.type === 'stylesheet') {
document.head.append(createElement('link', _extends__default({
document.head.append(createElement('link', _extends({
rel: 'stylesheet'

@@ -291,3 +303,3 @@ }, item.data)));

if (needPreload.length > 1) needPreload.forEach(item => memoizedPreloadJS(item.data.src));
context = _extends__default({
context = _extends({
getMarkmap: () => window.markmap

@@ -294,0 +306,0 @@ }, context);

{
"name": "markmap-common",
"version": "0.1.3",
"version": "0.1.4",
"description": "",

@@ -9,9 +9,10 @@ "author": "",

"dev": "rollup -wc rollup.conf.js",
"clean": "del dist types",
"clean": "del-cli dist types",
"prebuild": "run-s ci clean",
"prepublishOnly": "run-s build",
"ci": "run-s lint",
"lint": "eslint --ext .ts,.tsx .",
"build:types": "tsc",
"build:js": "rollup -c rollup.conf.js",
"prebuild": "npm run ci && npm run clean",
"prepublishOnly": "npm run build",
"ci": "npm run lint",
"lint": "eslint --ext .ts,.tsx .",
"build": "tsc && npm run build:js"
"build": "run-s build:types build:js"
},

@@ -32,3 +33,3 @@ "main": "dist/index.js",

},
"gitHead": "cb2ed0a25207e2617bb8b4d3735d61d4b5392560"
"gitHead": "efdba06cf8ff88739cafc02e2b324aee91340abc"
}

@@ -0,0 +0,0 @@ export declare class Hook<T extends (...args: any[]) => void> {

@@ -0,0 +0,0 @@ import { JSItem, CSSItem } from './types';

@@ -0,0 +0,0 @@ export * from './hook';

import { JSItem, CSSItem } from './types';
export declare function loadJS(items: JSItem[], context?: any): Promise<void>;
export declare function loadCSS(items: CSSItem[]): void;

@@ -0,0 +0,0 @@ export interface IHierarchy<T> {

export * from './common';

@@ -0,0 +0,0 @@ import { IWrapContext, IDeferred } from './types';

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