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

@simplism/core

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simplism/core - npm Package Compare versions

Comparing version 10.3.19 to 10.3.20

2

package.json
{
"name": "@simplism/core",
"version": "10.3.19",
"version": "10.3.20",
"description": "Simplism Core Package",

@@ -5,0 +5,0 @@ "repository": "github:kslhunter/simplism",

@@ -15,16 +15,11 @@ import {DateTime} from "../type/DateTime";

return {__type__: "Date", data: currValue.toISOString()};
}
else if (currValue instanceof DateTime) {
} else if (currValue instanceof DateTime) {
return {__type__: "DateTime", data: currValue.toString()};
}
else if (currValue instanceof DateOnly) {
} else if (currValue instanceof DateOnly) {
return {__type__: "DateOnly", data: currValue.toString()};
}
else if (currValue instanceof Time) {
} else if (currValue instanceof Time) {
return {__type__: "Time", data: currValue.toString()};
}
else if (currValue instanceof Uuid) {
} else if (currValue instanceof Uuid) {
return {__type__: "Uuid", data: currValue.toString()};
}
else if (currValue instanceof Error) {
} else if (currValue instanceof Error) {
const error = {};

@@ -36,4 +31,3 @@ for (const currKey of Object.getOwnPropertyNames(currValue)) {

return {__type__: "Error", data: error};
}
else if (currValue instanceof Buffer || (currValue && currValue.type === "Buffer")) {
} else if (currValue instanceof Buffer || (currValue && currValue.type === "Buffer")) {
return {__type__: "Buffer", data: (options && options.hideBuffer) ? "__hidden__" : value["data"]};

@@ -48,4 +42,3 @@ }

return {__type__: "Buffer", data: (options && options.hideBuffer) ? "__hidden__" : value["data"]};
}
else if (!(value instanceof Array) && value instanceof Object && Object.keys(value).length > 0) {
} else if (!(value instanceof Array) && value instanceof Object && Object.keys(value).length > 0) {
const result = {};

@@ -56,4 +49,3 @@ for (const key of Object.keys(value)) {

return result;
}
else {
} else {
return value;

@@ -70,24 +62,17 @@ }

return undefined;
}
else if (typeof value === "object" && value.__type__ === "Date") {
} else if (typeof value === "object" && value.__type__ === "Date") {
return new Date(Date.parse(value.data));
}
else if (typeof value === "object" && value.__type__ === "DateTime") {
} else if (typeof value === "object" && value.__type__ === "DateTime") {
return DateTime.parse(value.data);
}
else if (typeof value === "object" && value.__type__ === "DateOnly") {
} else if (typeof value === "object" && value.__type__ === "DateOnly") {
return DateOnly.parse(value.data);
}
else if (typeof value === "object" && value.__type__ === "Time") {
} else if (typeof value === "object" && value.__type__ === "Time") {
return Time.parse(value.data);
}
else if (typeof value === "object" && value.__type__ === "Uuid") {
} else if (typeof value === "object" && value.__type__ === "Uuid") {
return new Uuid(value.data);
}
else if (typeof value === "object" && value.__type__ === "Error") {
} else if (typeof value === "object" && value.__type__ === "Error") {
const error = new Error();
Object.assign(error, value.data);
return error;
}
else if (typeof value === "object" && value.__type__ === "Buffer") {
} else if (typeof value === "object" && value.__type__ === "Buffer") {
return Buffer.from(value.data);

@@ -94,0 +79,0 @@ }

@@ -46,4 +46,3 @@ import {DateTime} from "../type/DateTime";

});
}
else {
} else {
this._groupMap.set(groupName, {

@@ -59,4 +58,3 @@ ...Logger._defaultConfig,

this._groupMap.delete(groupName);
}
else {
} else {
this._groupMap.clear();

@@ -107,4 +105,3 @@ }

return item.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, "");
}
else if (item instanceof Error) {
} else if (item instanceof Error) {
return item.stack;

@@ -153,4 +150,3 @@ }

fs.appendFileSync(filePath, `${text}\r\n`, "utf8");
}
else {
} else {
fs.writeFileSync(filePath, `${text}\r\n`, "utf8");

@@ -157,0 +153,0 @@ }

Sorry, the diff of this file is not supported yet

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