ng2-contentful
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11060
13
213
0