New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

buildkite-graph

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buildkite-graph - npm Package Compare versions

Comparing version

to
1.4.0

6

dist/serializers/json.d.ts
import { Pipeline } from '../';
import { Serializer } from '.';
export declare class JsonSerializer implements Serializer<object> {
serialize(e: Pipeline): object;
export declare class JsonSerializer implements Serializer<object | string> {
private readonly stringify;
constructor(stringify?: boolean);
serialize(e: Pipeline): object | string;
}

@@ -5,7 +5,10 @@ "use strict";

var JsonSerializer = /** @class */ (function () {
function JsonSerializer() {
function JsonSerializer(stringify) {
if (stringify === void 0) { stringify = false; }
this.stringify = stringify;
}
JsonSerializer.prototype.serialize = function (e) {
// Workaround to get rid of undefined values
return JSON.parse(JSON.stringify(class_transformer_1.classToPlain(e)));
var json = JSON.parse(JSON.stringify(class_transformer_1.classToPlain(e)));
return this.stringify ? JSON.stringify(json) : json;
};

@@ -12,0 +15,0 @@ return JsonSerializer;

{
"name": "buildkite-graph",
"version": "1.3.0",
"version": "1.4.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts",