You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

netlify-cms-lib-util

Package Overview
Dependencies
Maintainers
10
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-cms-lib-util - npm Package Compare versions

Comparing version

to
2.11.5

8

CHANGELOG.md

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

## [2.11.5](https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-lib-util/compare/netlify-cms-lib-util@2.11.4...netlify-cms-lib-util@2.11.5) (2020-09-20)
**Note:** Version bump only for package netlify-cms-lib-util
## [2.11.4](https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-lib-util/compare/netlify-cms-lib-util@2.11.3...netlify-cms-lib-util@2.11.4) (2020-09-15)

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

4

package.json
{
"name": "netlify-cms-lib-util",
"description": "Shared utilities for Netlify CMS.",
"version": "2.11.4",
"version": "2.11.5",
"repository": "https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-lib-util",

@@ -28,3 +28,3 @@ "bugs": "https://github.com/netlify/netlify-cms/issues",

},
"gitHead": "9f9b93c7182f30007b13518a78ce83c9b25dd21a"
"gitHead": "de04326b3ec95ef520610a2b5ac4ec24b8d2cdd8"
}

@@ -33,2 +33,8 @@ import semaphore, { Semaphore } from 'semaphore';

export interface UnpublishedEntryDiff {
id: string;
path: string;
newFile: boolean;
}
export interface UnpublishedEntry {

@@ -38,3 +44,3 @@ slug: string;

status: string;
diffs: { id: string; path: string; newFile: boolean }[];
diffs: UnpublishedEntryDiff[];
updatedAt: string;

@@ -50,2 +56,9 @@ }

export type DataFile = {
path: string;
slug: string;
raw: string;
newPath?: string;
};
export type AssetProxy = {

@@ -57,3 +70,6 @@ path: string;

export type Entry = { path: string; slug: string; raw: string; newPath?: string };
export type Entry = {
dataFiles: DataFile[];
assets: AssetProxy[];
};

@@ -123,5 +139,5 @@ export type PersistOptions = {

persistEntry: (obj: Entry, assetProxies: AssetProxy[], opts: PersistOptions) => Promise<void>;
persistEntry: (entry: Entry, opts: PersistOptions) => Promise<void>;
persistMedia: (file: AssetProxy, opts: PersistOptions) => Promise<ImplementationMediaFile>;
deleteFile: (path: string, commitMessage: string) => Promise<void>;
deleteFiles: (paths: string[], commitMessage: string) => Promise<void>;

@@ -128,0 +144,0 @@ unpublishedEntries: () => Promise<string[]>;

@@ -23,2 +23,3 @@ import APIError from './APIError';

ImplementationEntry as IE,
UnpublishedEntryDiff as UED,
UnpublishedEntry as UE,

@@ -44,2 +45,3 @@ ImplementationMediaFile as IMF,

allEntriesByFolder,
DataFile as DF,
} from './implementation';

@@ -81,2 +83,3 @@ import {

export type ImplementationEntry = IE;
export type UnpublishedEntryDiff = UED;
export type UnpublishedEntry = UE;

@@ -97,2 +100,3 @@ export type ImplementationMediaFile = IMF;

export type PointerFile = PF;
export type DataFile = DF;

@@ -99,0 +103,0 @@ export const NetlifyCmsLibUtil = {

Sorry, the diff of this file is not supported yet