Socket
Socket
Sign inDemoInstall

contentful-management

Package Overview
Dependencies
7
Maintainers
6
Versions
555
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 11.13.3 to 11.14.0

6

dist/es-modules/adapters/REST/endpoints/asset.js

@@ -24,2 +24,8 @@ const _excluded = ["asset", "locale", "options"],

};
export const getPublished = (http, params, rawData, headers) => {
return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`, {
params: normalizeSelect(params.query),
headers: headers ? _objectSpread({}, headers) : undefined
});
};
export const getMany = (http, params, rawData, headers) => {

@@ -26,0 +32,0 @@ return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {

2

dist/es-modules/contentful-management.js

@@ -48,3 +48,3 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }

// @ts-expect-error
`${sdkMain}/${"11.13.3"}`, params.application, params.integration, params.feature);
`${sdkMain}/${"11.14.0"}`, params.application, params.integration, params.feature);
const adapter = createAdapter(params);

@@ -51,0 +51,0 @@

@@ -217,2 +217,3 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }

asset: {
getPublished: wrap(wrapParams, 'Asset', 'getPublished'),
getMany: wrap(wrapParams, 'Asset', 'getMany'),

@@ -219,0 +220,0 @@ get: wrap(wrapParams, 'Asset', 'get'),

import { RestEndpoint } from '../types';
export declare const get: RestEndpoint<'Asset', 'get'>;
export declare const getPublished: RestEndpoint<'Asset', 'getPublished'>;
export declare const getMany: RestEndpoint<'Asset', 'getMany'>;

@@ -4,0 +5,0 @@ export declare const update: RestEndpoint<'Asset', 'update'>;

@@ -627,2 +627,21 @@ import { Stream } from 'stream';

/**
* Gets a collection of published Assets
* @param query - Object with search parameters. Check the <a href="https://www.contentful.com/developers/docs/javascript/tutorials/using-js-cda-sdk/#retrieving-entries-with-search-parameters">JS SDK tutorial</a> and the <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters">REST API reference</a> for more details.
* @return Promise for a collection of published Assets
* @example ```javascript
* const contentful = require('contentful-management')
*
* const client = contentful.createClient({
* accessToken: '<content_management_api_key>'
* })
*
* client.getSpace('<space_id>')
* .then((space) => space.getEnvironment('<environment-id>'))
* .then((environment) => environment.getPublishedAssets())
* .then((response) => console.log(response.items))
* .catch(console.error)
* ```
*/
getPublishedAssets(query?: QueryOptions): Promise<import("./common-types").Collection<import("./entities/asset").Asset, AssetProps>>;
/**
* Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.

@@ -629,0 +648,0 @@ * @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.

@@ -233,2 +233,3 @@ /// <reference types="node" />

asset: {
getPublished(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<AssetProps>>;
getMany(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<AssetProps>>;

@@ -235,0 +236,0 @@ get(params: OptionalDefaults<GetSpaceEnvironmentParams & {

{
"name": "contentful-management",
"version": "11.13.3",
"version": "11.14.0",
"description": "Client for Contentful's Content Management API",

@@ -5,0 +5,0 @@ "homepage": "https://www.contentful.com/developers/documentation/content-management-api/",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc