swc/bundler/tests/.cache/deno/b654fe628f534340c69d172782bfff51335db83e.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

9 lines
284 B
TypeScript

// Loaded from https://deno.land/x/graphql_deno@v15.0.0/lib/jsutils/printPathArray.js
/**
* Build a string describing the path.
*/
export default function printPathArray(path) {
return path.map(key => typeof key === 'number' ? '[' + key.toString() + ']' : '.' + key).join('');
}