Comparing version 1.0.7 to 1.0.8
@@ -10,5 +10,5 @@ "use strict"; | ||
// get a specific article | ||
const articles = await __1.default({ id: 109912957 }); | ||
const articles = await __1.default({ id: 110047513 }); | ||
const article = articles[0]; | ||
console.log(article.id, article.title); | ||
})(); |
@@ -36,3 +36,3 @@ "use strict"; | ||
function parseAggregateResponse(json) { | ||
return json.stories.map((a) => new Article_1.default(a)); | ||
return json.stories.map((a) => Article_1.default.parse(a)); | ||
} | ||
@@ -39,0 +39,0 @@ /** |
{ | ||
"name": "stuft", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "A news api.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
18956