Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-contentful

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-contentful - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

index.d.ts

2

package.json
{
"name": "ng2-contentful",
"version": "0.1.0",
"version": "0.1.1",
"description": "Contentful module for angular2",

@@ -5,0 +5,0 @@ "scripts": {},

@@ -14,5 +14,2 @@ "use strict";

const ng2_contentful_config_1 = require('../ng2-contentful-config');
/**
*
*/
class ContentfulRequest {

@@ -32,6 +29,2 @@ constructor(_http) {

}
/**
*
* @returns {ContentfulRequest}
*/
getAssets() {

@@ -41,7 +34,2 @@ this.requestUrl = '/assets/';

}
/**
*
* @param assetId
* @returns {ContentfulRequest}
*/
getAsset(assetId) {

@@ -51,7 +39,2 @@ this.requestUrl = `/assets/${assetId}`;

}
/**
* Based on
* @param type - contentful content type identifier
* @returns {ContentfulRequest}
*/
getEntriesByType(type) {

@@ -62,8 +45,2 @@ this.requestUrl = '/entries/';

}
/**
* Fetch entry by entryID
* Based on https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/entries/entry/get-a-single-entry
* @param entryId - contentful entry id
* @returns {ContentfulRequest}
*/
getEntry(entryId) {

@@ -73,8 +50,2 @@ this.requestUrl = `/entries/${entryId}`;

}
/**
*
* @param type
* @param slug
* @returns {ContentfulRequest}
*/
getEntryBySlug(type, slug) {

@@ -87,8 +58,2 @@ this.queryParams.set('content_type', type);

}
/**
*
* @param type
* @param searchItems
* @returns {ContentfulRequest}
*/
searchEntries(type, ...searchItems) {

@@ -114,6 +79,2 @@ this.queryParams.set('content_type', type);

}
/**
* Call request to the contentful's API
* @returns {Observable<Response>}
*/
commit() {

@@ -142,5 +103,2 @@ let url = [

}
/**
*
*/
create() {

@@ -147,0 +105,0 @@ return new ContentfulRequest(this._http);

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