Socket
Socket
Sign inDemoInstall

obj-serialize

Package Overview
Dependencies
3
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

README.md

2

lib/obj-serialize.js

@@ -1,2 +0,2 @@

var e=require("flat"),t=require("lodash"),r=Symbol("ba1894562a5b3e00de68679b5e01fed0de0a0aac6da459729c2f4d665d928ccc");function n(t,n){return e.unflatten(Object.entries(e.flatten(t)).reduce(function(e,t){var i=t[0],a=t[1],o=a,c=n(a);return typeof c==typeof r?e[i]=o:c!==o&&(e[i]=c),e},{}))}exports.SkipSerialization=r,exports.nextServerSideSerialize=function(e){return n(e,function(e){return t.isDate(e)?e.toLocaleString():t.isUndefined(e)?null:e instanceof URL?e.toString():r})},exports.serialize=n;
var e=require("flat"),t=require("lodash"),r=Symbol("ba1894562a5b3e00de68679b5e01fed0de0a0aac6da459729c2f4d665d928ccc");function n(t,n){return e.unflatten(Object.entries(e.flatten(t)).reduce(function(e,t){var i=t[0],a=t[1],o=a,f=n(a);return typeof f==typeof r?e[i]=o:f!==o&&(e[i]=f),e},{}))}exports.SkipSerialization=r,exports.nextServerSideSerialize=function(e){return n(e,function(e){return t.isDate(e)?e.toISOString():t.isUndefined(e)?null:e instanceof URL?e.toString():r})},exports.serialize=n;
//# sourceMappingURL=obj-serialize.js.map

@@ -1,2 +0,2 @@

import{unflatten as t,flatten as e}from"flat";import{isDate as r,isUndefined as n}from"lodash";var o=Symbol("ba1894562a5b3e00de68679b5e01fed0de0a0aac6da459729c2f4d665d928ccc");function c(r,n){return t(Object.entries(e(r)).reduce(function(t,e){var r=e[0],c=e[1],a=c,f=n(c);return typeof f==typeof o?t[r]=a:f!==a&&(t[r]=f),t},{}))}function a(t){return c(t,function(t){return r(t)?t.toLocaleString():n(t)?null:t instanceof URL?t.toString():o})}export{o as SkipSerialization,a as nextServerSideSerialize,c as serialize};
import{unflatten as t,flatten as r}from"flat";import{isDate as e,isUndefined as n}from"lodash";var o=Symbol("ba1894562a5b3e00de68679b5e01fed0de0a0aac6da459729c2f4d665d928ccc");function c(e,n){return t(Object.entries(r(e)).reduce(function(t,r){var e=r[0],c=r[1],f=c,a=n(c);return typeof a==typeof o?t[e]=f:a!==f&&(t[e]=a),t},{}))}function f(t){return c(t,function(t){return e(t)?t.toISOString():n(t)?null:t instanceof URL?t.toString():o})}export{o as SkipSerialization,f as nextServerSideSerialize,c as serialize};
//# sourceMappingURL=obj-serialize.module.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("flat"),require("lodash")):"function"==typeof define&&define.amd?define(["exports","flat","lodash"],t):t((e||self).objSerialize={},e.flat,e.lodash)}(this,function(e,t,n){var i=Symbol("ba1894562a5b3e00de68679b5e01fed0de0a0aac6da459729c2f4d665d928ccc");function o(e,n){return t.unflatten(Object.entries(t.flatten(e)).reduce(function(e,t){var o=t[0],f=t[1],a=f,r=n(f);return typeof r==typeof i?e[o]=a:r!==a&&(e[o]=r),e},{}))}e.SkipSerialization=i,e.nextServerSideSerialize=function(e){return o(e,function(e){return n.isDate(e)?e.toLocaleString():n.isUndefined(e)?null:e instanceof URL?e.toString():i})},e.serialize=o});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("flat"),require("lodash")):"function"==typeof define&&define.amd?define(["exports","flat","lodash"],t):t((e||self).objSerialize={},e.flat,e.lodash)}(this,function(e,t,n){var i=Symbol("ba1894562a5b3e00de68679b5e01fed0de0a0aac6da459729c2f4d665d928ccc");function o(e,n){return t.unflatten(Object.entries(t.flatten(e)).reduce(function(e,t){var o=t[0],f=t[1],r=f,a=n(f);return typeof a==typeof i?e[o]=r:a!==r&&(e[o]=a),e},{}))}e.SkipSerialization=i,e.nextServerSideSerialize=function(e){return o(e,function(e){return n.isDate(e)?e.toISOString():n.isUndefined(e)?null:e instanceof URL?e.toString():i})},e.serialize=o});
//# sourceMappingURL=obj-serialize.umd.js.map
{
"name": "obj-serialize",
"version": "1.0.0",
"version": "1.0.1",
"description": "Simple utility to serialize objects to be passed around to another context.",

@@ -5,0 +5,0 @@ "main": "./lib/obj-serialize.cjs",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc