UNPKG

1.01 kBSource Map (JSON)View Raw
1{"version":3,"file":"json-utilts.js","sourceRoot":"","sources":["../../../../../modules/store/schematics-core/utility/json-utilts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,uGAAuG;AACvG,SAAgB,uBAAuB,CACrC,IAAmB,EACnB,YAAoB;;IAEpB,IAAI,SAAS,GAAuB,IAAI,CAAC;;QACzC,KAAuB,IAAA,KAAA,SAAA,IAAI,CAAC,UAAU,CAAA,gBAAA,4BAAE;YAAnC,IAAM,QAAQ,WAAA;YACjB,IAAI,QAAQ,CAAC,GAAG,CAAC,KAAK,IAAI,YAAY,EAAE;gBACtC,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC;aAC5B;SACF;;;;;;;;;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAZD,0DAYC","sourcesContent":["import { JsonAstNode, JsonAstObject } from '@angular-devkit/core';\n\n// https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/json-utils.ts\nexport function findPropertyInAstObject(\n node: JsonAstObject,\n propertyName: string\n): JsonAstNode | null {\n let maybeNode: JsonAstNode | null = null;\n for (const property of node.properties) {\n if (property.key.value == propertyName) {\n maybeNode = property.value;\n }\n }\n\n return maybeNode;\n}\n"]}
\No newline at end of file