repoweaver
Version:
A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies
1 lines • 3.28 kB
JSON
{"ast":null,"code":"\"use strict\";\n\nexport var isPlainObject = function isPlainObject(value) {\n if (typeof value === 'object' && value !== null) {\n return Object.getPrototypeOf(value) === Object.prototype;\n }\n return false;\n};\nvar _deepFreeze = function deepFreeze(object) {\n if (process.env.NODE_ENV === 'production') {\n return object;\n }\n if (Object.isFrozen(object)) {\n return object;\n }\n if (!isPlainObject(object) && !Array.isArray(object)) {\n return object;\n }\n for (var key in object) {\n if (key !== 'params') {\n var _Object$getOwnPropert;\n if ((_Object$getOwnPropert = Object.getOwnPropertyDescriptor(object, key)) != null && _Object$getOwnPropert.configurable) {\n var value = object[key];\n _deepFreeze(value);\n }\n }\n }\n return Object.freeze(object);\n};\nexport { _deepFreeze as deepFreeze };","map":{"version":3,"names":["isPlainObject","value","Object","getPrototypeOf","prototype","deepFreeze","object","process","env","NODE_ENV","isFrozen","Array","isArray","key","_Object$getOwnPropert","getOwnPropertyDescriptor","configurable","freeze","_deepFreeze"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/core/src/deepFreeze.tsx"],"sourcesContent":["export const isPlainObject = (value: unknown): value is object => {\n if (typeof value === 'object' && value !== null) {\n return Object.getPrototypeOf(value) === Object.prototype;\n }\n\n return false;\n};\n\nexport const deepFreeze = <T,>(object: T): Readonly<T> => {\n // We only freeze in development to catch issues early\n // Don't freeze in production to avoid unnecessary performance overhead\n if (process.env.NODE_ENV === 'production') {\n return object;\n }\n\n if (Object.isFrozen(object)) {\n return object;\n }\n\n if (!isPlainObject(object) && !Array.isArray(object)) {\n return object;\n }\n\n // Freeze properties before freezing self\n for (const key in object) {\n // Don't freeze objects in params since they are passed by the user\n if (key !== 'params') {\n if (Object.getOwnPropertyDescriptor(object, key)?.configurable) {\n const value = object[key];\n\n deepFreeze(value);\n }\n }\n }\n\n return Object.freeze(object);\n};\n"],"mappings":";;AAAA,OAAO,IAAMA,aAAa,GAAI,SAAjBA,aAAaA,CAAIC,KAAc,EAAsB;EAChE,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,EAAE;IAC/C,OAAOC,MAAM,CAACC,cAAc,CAACF,KAAK,CAAC,KAAKC,MAAM,CAACE,SAAS;EAC1D;EAEA,OAAO,KAAK;AACd,CAAC;AAEM,IAAMC,WAAU,GAAQ,SAAlBA,UAAUA,CAAQC,MAAS,EAAkB;EAGxD,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzC,OAAOH,MAAM;EACf;EAEA,IAAIJ,MAAM,CAACQ,QAAQ,CAACJ,MAAM,CAAC,EAAE;IAC3B,OAAOA,MAAM;EACf;EAEA,IAAI,CAACN,aAAa,CAACM,MAAM,CAAC,IAAI,CAACK,KAAK,CAACC,OAAO,CAACN,MAAM,CAAC,EAAE;IACpD,OAAOA,MAAM;EACf;EAGA,KAAK,IAAMO,GAAG,IAAIP,MAAM,EAAE;IAExB,IAAIO,GAAG,KAAK,QAAQ,EAAE;MAAA,IAAAC,qBAAA;MACpB,KAAAA,qBAAA,GAAIZ,MAAM,CAACa,wBAAwB,CAACT,MAAM,EAAEO,GAAG,CAAC,aAA5CC,qBAAA,CAA8CE,YAAY,EAAE;QAC9D,IAAMf,KAAK,GAAGK,MAAM,CAACO,GAAG,CAAC;QAEzBR,WAAU,CAACJ,KAAK,CAAC;MACnB;IACF;EACF;EAEA,OAAOC,MAAM,CAACe,MAAM,CAACX,MAAM,CAAC;AAC9B,CAAC;AAAA,SAAAY,WAAA,IAAAb,UAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}