🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@devcycle/types

Package Overview
Dependencies
Maintainers
6
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devcycle/types - npm Package Compare versions

Comparing version

to
1.0.6

src/types/apis/events/eventsAPI.d.ts

2

package.json
{
"name": "@devcycle/types",
"version": "1.0.5",
"version": "1.0.6",
"type": "commonjs",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -6,3 +6,3 @@ export * from './utils';

export * from './types/validators/dvcJSON';
export * from './types/apis/events/eventsAPI.dto';
export * from './types/apis/events/eventsAPI';
export * from './types/config/models';

@@ -18,4 +18,4 @@ "use strict";

__exportStar(require("./types/validators/dvcJSON"), exports);
__exportStar(require("./types/apis/events/eventsAPI.dto"), exports);
__exportStar(require("./types/apis/events/eventsAPI"), exports);
__exportStar(require("./types/config/models"), exports);
//# sourceMappingURL=index.js.map

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

exports.SDKTypeValues = ['client', 'server', 'mobile', 'api'];
const boolTransform = ({ value }) => {
if (value === 'true') {
return true;
}
else if (value === 'false') {
return false;
}
return value;
};
/**

@@ -34,3 +43,3 @@ * Base API User Schema used by the Bucketing API where the only required field is user_id.

class_validator_1.IsOptional(),
class_transformer_1.Transform(({ value }) => lodash_1.isString(value) ? value === 'true' : value),
class_transformer_1.Transform(boolTransform),
__metadata("design:type", Boolean)

@@ -143,3 +152,3 @@ ], DVCAPIUser.prototype, "isAnonymous", void 0);

class_validator_1.IsBoolean(),
class_transformer_1.Transform(({ value }) => lodash_1.isString(value) ? value === 'true' : value),
class_transformer_1.Transform(boolTransform),
__metadata("design:type", Boolean)

@@ -146,0 +155,0 @@ ], DVCClientAPIUser.prototype, "isAnonymous", void 0);

@@ -37,3 +37,3 @@ "use strict";

const value = json[key];
if (!value || !(lodash_1.isString(value) || lodash_1.isNumber(value) || lodash_1.isBoolean(value))) {
if (lodash_1.isUndefined(value) || lodash_1.isNull(value) || !(lodash_1.isString(value) || lodash_1.isNumber(value) || lodash_1.isBoolean(value))) {
return false;

@@ -40,0 +40,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet