Home / File/ profilingSerializer.js — react Source File

profilingSerializer.js — react Source File

Architecture documentation for profilingSerializer.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript BabelCompiler Validation 1 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  88b54546_7e9a_9f5d_1ea3_11350e7b725e["profilingSerializer.js"]
  a413acd5_7541_e904_f255_d4dd9b5e5bc1["hasOwnProperty"]
  88b54546_7e9a_9f5d_1ea3_11350e7b725e --> a413acd5_7541_e904_f255_d4dd9b5e5bc1
  style 88b54546_7e9a_9f5d_1ea3_11350e7b725e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import hasOwnProperty from 'shared/hasOwnProperty';

const FILTERED_VERSION_STRING = '<filtered-version>';

// `test` is part of Jest's serializer API
export function test(maybeProfile) {
  if (
    maybeProfile != null &&
    typeof maybeProfile === 'object' &&
    hasOwnProperty.call(maybeProfile, 'reactVersion') &&
    maybeProfile.reactVersion !== FILTERED_VERSION_STRING
  ) {
    return true;
  }

  return false;
}

// print() is part of Jest's serializer API
export function print(profile, serialize, indent) {
  return serialize({
    ...profile,
    reactVersion: FILTERED_VERSION_STRING,
  });
}

Domain

Subdomains

Functions

Dependencies

  • hasOwnProperty

Frequently Asked Questions

What does profilingSerializer.js do?
profilingSerializer.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in profilingSerializer.js?
profilingSerializer.js defines 2 function(s): print, test.
What does profilingSerializer.js depend on?
profilingSerializer.js imports 1 module(s): hasOwnProperty.
Where is profilingSerializer.js in the architecture?
profilingSerializer.js is located at packages/react-devtools-shared/src/__tests__/__serializers__/profilingSerializer.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src/__tests__/__serializers__).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free