Socket
Socket
Sign inDemoInstall

@vuepress/shared

Package Overview
Dependencies
Maintainers
7
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuepress/shared - npm Package Compare versions

Comparing version 2.0.0-beta.0 to 2.0.0-beta.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [2.0.0-beta.1](https://github.com/vuepress/vuepress-next/compare/v2.0.0-beta.0...v2.0.0-beta.1) (2021-03-13)
**Note:** Version bump only for package @vuepress/shared
# [2.0.0-beta.0](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.26...v2.0.0-beta.0) (2021-03-13)

@@ -8,0 +16,0 @@

1

lib/esm/index.d.ts
export * from './types';
export * from './utils';
//# sourceMappingURL=index.d.ts.map
export * from './types';
export * from './utils';
//# sourceMappingURL=index.js.map

@@ -28,2 +28,1 @@ /**

export declare type HeadAttrsConfig = Record<string, string | boolean>;
//# sourceMappingURL=head.d.ts.map
export {};
//# sourceMappingURL=head.js.map

@@ -6,2 +6,1 @@ export * from './head';

export * from './ssr';
//# sourceMappingURL=index.d.ts.map

@@ -6,2 +6,1 @@ export * from './head';

export * from './ssr';
//# sourceMappingURL=index.js.map

@@ -14,2 +14,1 @@ /**

export declare type LocaleData = Record<string, any>;
//# sourceMappingURL=locale.d.ts.map
export {};
//# sourceMappingURL=locale.js.map

@@ -71,2 +71,1 @@ import type { HeadConfig } from './head';

}
//# sourceMappingURL=page.d.ts.map
export {};
//# sourceMappingURL=page.js.map

@@ -43,2 +43,1 @@ import type { HeadConfig } from './head';

export declare type SiteLocaleConfig = LocaleConfig<SiteLocaleData>;
//# sourceMappingURL=site.d.ts.map
export {};
//# sourceMappingURL=site.js.map

@@ -9,2 +9,1 @@ import type { HeadConfig } from './head';

}
//# sourceMappingURL=ssr.d.ts.map
export {};
//# sourceMappingURL=ssr.js.map

@@ -8,2 +8,1 @@ import type { HeadConfig } from '../types';

export declare const dedupeHead: (head: HeadConfig[]) => HeadConfig[];
//# sourceMappingURL=dedupeHead.d.ts.map

@@ -19,2 +19,1 @@ import { resolveHeadIdentifier } from './resolveHeadIdentifier';

};
//# sourceMappingURL=dedupeHead.js.map

@@ -5,2 +5,1 @@ /**

export declare const ensureEndingSlash: (str: string) => string;
//# sourceMappingURL=ensureEndingSlash.d.ts.map

@@ -5,2 +5,1 @@ /**

export const ensureEndingSlash = (str) => /(\.html|\/)$/.test(str) ? str : str + '/';
//# sourceMappingURL=ensureEndingSlash.js.map

@@ -5,2 +5,1 @@ /**

export declare const ensureLeadingSlash: (str: string) => string;
//# sourceMappingURL=ensureLeadingSlash.d.ts.map

@@ -5,2 +5,1 @@ /**

export const ensureLeadingSlash = (str) => str.replace(/^\/?/, '/');
//# sourceMappingURL=ensureLeadingSlash.js.map

@@ -5,2 +5,1 @@ /**

export declare const formatDateString: (str: string, defaultDateString?: string) => string;
//# sourceMappingURL=formatDateString.d.ts.map

@@ -15,2 +15,1 @@ /**

};
//# sourceMappingURL=formatDateString.js.map

@@ -5,2 +5,1 @@ /**

export declare const htmlEscape: (str: string) => string;
//# sourceMappingURL=htmlEscape.d.ts.map

@@ -13,2 +13,1 @@ const htmlEscapeMap = {

export const htmlEscape = (str) => str.replace(htmlEscapeRegexp, (char) => htmlEscapeMap[char]);
//# sourceMappingURL=htmlEscape.js.map

@@ -5,2 +5,1 @@ /**

export declare const htmlUnescape: (str: string) => string;
//# sourceMappingURL=htmlUnescape.d.ts.map

@@ -18,2 +18,1 @@ const htmlUnescapeMap = {

export const htmlUnescape = (str) => str.replace(htmlUnescapeRegexp, (char) => htmlUnescapeMap[char]);
//# sourceMappingURL=htmlUnescape.js.map

@@ -19,2 +19,1 @@ export { isArray, isFunction, isPromise, isString } from '@vue/shared';

export * from './resolveRoutePathFromUrl';
//# sourceMappingURL=index.d.ts.map

@@ -19,2 +19,1 @@ export { isArray, isFunction, isPromise, isString } from '@vue/shared';

export * from './resolveRoutePathFromUrl';
//# sourceMappingURL=index.js.map

@@ -5,2 +5,1 @@ /**

export declare const isLinkExternal: (link: string, base?: string) => boolean;
//# sourceMappingURL=isLinkExternal.d.ts.map

@@ -16,2 +16,1 @@ import { isLinkHttp } from './isLinkHttp';

};
//# sourceMappingURL=isLinkExternal.js.map

@@ -9,2 +9,1 @@ /**

export declare const isLinkHttp: (link: string) => boolean;
//# sourceMappingURL=isLinkHttp.d.ts.map

@@ -9,2 +9,1 @@ /**

export const isLinkHttp = (link) => /^(https?:)?\/\//.test(link);
//# sourceMappingURL=isLinkHttp.js.map

@@ -5,2 +5,1 @@ /**

export declare const isLinkMailto: (link: string) => boolean;
//# sourceMappingURL=isLinkMailto.d.ts.map

@@ -5,2 +5,1 @@ /**

export const isLinkMailto = (link) => /^mailto:/.test(link);
//# sourceMappingURL=isLinkMailto.js.map

@@ -5,2 +5,1 @@ /**

export declare const isLinkTel: (link: string) => boolean;
//# sourceMappingURL=isLinkTel.d.ts.map

@@ -5,2 +5,1 @@ /**

export const isLinkTel = (link) => /^tel:/.test(link);
//# sourceMappingURL=isLinkTel.js.map

@@ -5,2 +5,1 @@ /**

export declare const isPlainObject: <T extends Record<any, any> = Record<any, any>>(val: unknown) => val is T;
//# sourceMappingURL=isPlainObject.d.ts.map

@@ -5,2 +5,1 @@ /**

export const isPlainObject = (val) => Object.prototype.toString.call(val) === '[object Object]';
//# sourceMappingURL=isPlainObject.js.map

@@ -5,2 +5,1 @@ /**

export declare const normalizePackageName: (request: string, org: string, type?: string | null) => string;
//# sourceMappingURL=normalizePackageName.d.ts.map

@@ -38,2 +38,1 @@ /**

};
//# sourceMappingURL=normalizePackageName.js.map

@@ -5,2 +5,1 @@ /**

export declare const removeEndingSlash: (str: string) => string;
//# sourceMappingURL=removeEndingSlash.d.ts.map

@@ -5,2 +5,1 @@ /**

export const removeEndingSlash = (str) => str.replace(/\/$/, '');
//# sourceMappingURL=removeEndingSlash.js.map

@@ -5,2 +5,1 @@ /**

export declare const removeLeadingSlash: (str: string) => string;
//# sourceMappingURL=removeLeadingSlash.d.ts.map

@@ -5,2 +5,1 @@ /**

export const removeLeadingSlash = (str) => str.replace(/^\//, '');
//# sourceMappingURL=removeLeadingSlash.js.map

@@ -6,2 +6,1 @@ import type { HeadConfig } from '../types';

export declare const resolveHeadIdentifier: ([tag, attrs, content,]: HeadConfig) => string;
//# sourceMappingURL=resolveHeadIdentifier.d.ts.map

@@ -19,2 +19,1 @@ /**

};
//# sourceMappingURL=resolveHeadIdentifier.js.map

@@ -6,2 +6,1 @@ import type { LocaleConfig } from '../types';

export declare const resolveLocalePath: (locales: LocaleConfig, routePath: string) => string;
//# sourceMappingURL=resolveLocalePath.d.ts.map

@@ -19,2 +19,1 @@ /**

};
//# sourceMappingURL=resolveLocalePath.js.map
export declare const resolveRoutePathFromUrl: (url: string, base?: string) => string;
//# sourceMappingURL=resolveRoutePathFromUrl.d.ts.map

@@ -6,2 +6,1 @@ export const resolveRoutePathFromUrl = (url, base = '/') => url

.replace(new RegExp(`^${base}`), '/');
//# sourceMappingURL=resolveRoutePathFromUrl.js.map
export * from './types';
export * from './utils';
//# sourceMappingURL=index.d.ts.map

@@ -15,2 +15,1 @@ "use strict";

__exportStar(require("./utils"), exports);
//# sourceMappingURL=index.js.map

@@ -28,2 +28,1 @@ /**

export declare type HeadAttrsConfig = Record<string, string | boolean>;
//# sourceMappingURL=head.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=head.js.map

@@ -6,2 +6,1 @@ export * from './head';

export * from './ssr';
//# sourceMappingURL=index.d.ts.map

@@ -18,2 +18,1 @@ "use strict";

__exportStar(require("./ssr"), exports);
//# sourceMappingURL=index.js.map

@@ -14,2 +14,1 @@ /**

export declare type LocaleData = Record<string, any>;
//# sourceMappingURL=locale.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=locale.js.map

@@ -71,2 +71,1 @@ import type { HeadConfig } from './head';

}
//# sourceMappingURL=page.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=page.js.map

@@ -43,2 +43,1 @@ import type { HeadConfig } from './head';

export declare type SiteLocaleConfig = LocaleConfig<SiteLocaleData>;
//# sourceMappingURL=site.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=site.js.map

@@ -9,2 +9,1 @@ import type { HeadConfig } from './head';

}
//# sourceMappingURL=ssr.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ssr.js.map

@@ -8,2 +8,1 @@ import type { HeadConfig } from '../types';

export declare const dedupeHead: (head: HeadConfig[]) => HeadConfig[];
//# sourceMappingURL=dedupeHead.d.ts.map

@@ -23,2 +23,1 @@ "use strict";

exports.dedupeHead = dedupeHead;
//# sourceMappingURL=dedupeHead.js.map

@@ -5,2 +5,1 @@ /**

export declare const ensureEndingSlash: (str: string) => string;
//# sourceMappingURL=ensureEndingSlash.d.ts.map

@@ -9,2 +9,1 @@ "use strict";

exports.ensureEndingSlash = ensureEndingSlash;
//# sourceMappingURL=ensureEndingSlash.js.map

@@ -5,2 +5,1 @@ /**

export declare const ensureLeadingSlash: (str: string) => string;
//# sourceMappingURL=ensureLeadingSlash.d.ts.map

@@ -9,2 +9,1 @@ "use strict";

exports.ensureLeadingSlash = ensureLeadingSlash;
//# sourceMappingURL=ensureLeadingSlash.js.map

@@ -5,2 +5,1 @@ /**

export declare const formatDateString: (str: string, defaultDateString?: string) => string;
//# sourceMappingURL=formatDateString.d.ts.map

@@ -19,2 +19,1 @@ "use strict";

exports.formatDateString = formatDateString;
//# sourceMappingURL=formatDateString.js.map

@@ -5,2 +5,1 @@ /**

export declare const htmlEscape: (str: string) => string;
//# sourceMappingURL=htmlEscape.d.ts.map

@@ -17,2 +17,1 @@ "use strict";

exports.htmlEscape = htmlEscape;
//# sourceMappingURL=htmlEscape.js.map

@@ -5,2 +5,1 @@ /**

export declare const htmlUnescape: (str: string) => string;
//# sourceMappingURL=htmlUnescape.d.ts.map

@@ -22,2 +22,1 @@ "use strict";

exports.htmlUnescape = htmlUnescape;
//# sourceMappingURL=htmlUnescape.js.map

@@ -19,2 +19,1 @@ export { isArray, isFunction, isPromise, isString } from '@vue/shared';

export * from './resolveRoutePathFromUrl';
//# sourceMappingURL=index.d.ts.map

@@ -36,2 +36,1 @@ "use strict";

__exportStar(require("./resolveRoutePathFromUrl"), exports);
//# sourceMappingURL=index.js.map

@@ -5,2 +5,1 @@ /**

export declare const isLinkExternal: (link: string, base?: string) => boolean;
//# sourceMappingURL=isLinkExternal.d.ts.map

@@ -20,2 +20,1 @@ "use strict";

exports.isLinkExternal = isLinkExternal;
//# sourceMappingURL=isLinkExternal.js.map

@@ -9,2 +9,1 @@ /**

export declare const isLinkHttp: (link: string) => boolean;
//# sourceMappingURL=isLinkHttp.d.ts.map

@@ -13,2 +13,1 @@ "use strict";

exports.isLinkHttp = isLinkHttp;
//# sourceMappingURL=isLinkHttp.js.map

@@ -5,2 +5,1 @@ /**

export declare const isLinkMailto: (link: string) => boolean;
//# sourceMappingURL=isLinkMailto.d.ts.map

@@ -9,2 +9,1 @@ "use strict";

exports.isLinkMailto = isLinkMailto;
//# sourceMappingURL=isLinkMailto.js.map

@@ -5,2 +5,1 @@ /**

export declare const isLinkTel: (link: string) => boolean;
//# sourceMappingURL=isLinkTel.d.ts.map

@@ -9,2 +9,1 @@ "use strict";

exports.isLinkTel = isLinkTel;
//# sourceMappingURL=isLinkTel.js.map

@@ -5,2 +5,1 @@ /**

export declare const isPlainObject: <T extends Record<any, any> = Record<any, any>>(val: unknown) => val is T;
//# sourceMappingURL=isPlainObject.d.ts.map

@@ -9,2 +9,1 @@ "use strict";

exports.isPlainObject = isPlainObject;
//# sourceMappingURL=isPlainObject.js.map

@@ -5,2 +5,1 @@ /**

export declare const normalizePackageName: (request: string, org: string, type?: string | null) => string;
//# sourceMappingURL=normalizePackageName.d.ts.map

@@ -42,2 +42,1 @@ "use strict";

exports.normalizePackageName = normalizePackageName;
//# sourceMappingURL=normalizePackageName.js.map

@@ -5,2 +5,1 @@ /**

export declare const removeEndingSlash: (str: string) => string;
//# sourceMappingURL=removeEndingSlash.d.ts.map

@@ -9,2 +9,1 @@ "use strict";

exports.removeEndingSlash = removeEndingSlash;
//# sourceMappingURL=removeEndingSlash.js.map

@@ -5,2 +5,1 @@ /**

export declare const removeLeadingSlash: (str: string) => string;
//# sourceMappingURL=removeLeadingSlash.d.ts.map

@@ -9,2 +9,1 @@ "use strict";

exports.removeLeadingSlash = removeLeadingSlash;
//# sourceMappingURL=removeLeadingSlash.js.map

@@ -6,2 +6,1 @@ import type { HeadConfig } from '../types';

export declare const resolveHeadIdentifier: ([tag, attrs, content,]: HeadConfig) => string;
//# sourceMappingURL=resolveHeadIdentifier.d.ts.map

@@ -23,2 +23,1 @@ "use strict";

exports.resolveHeadIdentifier = resolveHeadIdentifier;
//# sourceMappingURL=resolveHeadIdentifier.js.map

@@ -6,2 +6,1 @@ import type { LocaleConfig } from '../types';

export declare const resolveLocalePath: (locales: LocaleConfig, routePath: string) => string;
//# sourceMappingURL=resolveLocalePath.d.ts.map

@@ -23,2 +23,1 @@ "use strict";

exports.resolveLocalePath = resolveLocalePath;
//# sourceMappingURL=resolveLocalePath.js.map
export declare const resolveRoutePathFromUrl: (url: string, base?: string) => string;
//# sourceMappingURL=resolveRoutePathFromUrl.d.ts.map

@@ -10,2 +10,1 @@ "use strict";

exports.resolveRoutePathFromUrl = resolveRoutePathFromUrl;
//# sourceMappingURL=resolveRoutePathFromUrl.js.map
{
"name": "@vuepress/shared",
"version": "2.0.0-beta.0",
"version": "2.0.0-beta.1",
"description": "Utils that shared between VuePress node and client",

@@ -36,3 +36,3 @@ "keywords": [

},
"gitHead": "ccba698ba8d93b3ba55a0f76489386e1c4b79fd8"
"gitHead": "f4299d8828064e7fdde1cc7058fe339872ecd147"
}

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