netlify-cms-lib-util
Advanced tools
Comparing version
@@ -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 @@ |
{ | ||
"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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
859850
0.09%4036
0.45%5
-16.67%