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

stuft

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stuft - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

5

lib/Article.js

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

class Article {
static parse(raw) {
return new Article(raw.json);
}
/**

@@ -96,3 +99,3 @@ * Creates a new instance of Article.

get images() {
return this.json.images.map((image) => new Image_1.default(image));
return this.json.images.map((image) => Image_1.default.parse(image));
}

@@ -99,0 +102,0 @@ /**

@@ -11,2 +11,8 @@ "use strict";

class Image {
static parse(raw) {
if (raw.json) {
return new Image(raw.json);
}
return new Image(raw);
}
/**

@@ -13,0 +19,0 @@ * Creates a new instance of Image.

4

package.json
{
"name": "stuft",
"version": "1.0.6",
"version": "1.0.7",
"description": "A news api.",

@@ -8,3 +8,3 @@ "main": "lib/index.js",

"scripts": {
"build": "tsc"
"build": "tsc --watch"
},

@@ -11,0 +11,0 @@ "author": "JP Sheehan",

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