hunk.code_window: import assert = require('assert')
   export type SearchedPackage = {
     name: string,
     range: string,
   }
   export type PackageNode = {
     pkg: {
       name: string,
       version: string,
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit: } | string
  
hunk.file_path: src/index.ts
hunk.type: replace
file: "use strict";
  
  module.exports = function (t, a) {
  	a(t({ foo: "bar" }), JSON.stringify({ foo: "bar" }));
  	a(t({ foo: { elo: 12 } }), "{\"foo\":{\"elo\":12}}");
  	a(t({ foo: { elo: 12,
  mel: {
  		toJSON: function () {
   throw new Error("Nu nu!");
  }
  	} } }), "{\"foo\":{\"elo\":12}}");
  	a(t({ foo: { elo: 12 },
  mel: {
  		toJSON: function () {
   throw new Error("Nu nu!");
  }
  	} }), "{\"foo\":{\"elo\":12}}");
  	a(t({ foo: { elo: 12 },
  mel: [
  "raz", {
  		toJSON: function () {
   throw new Error("Nu nu!");
  }
  	}, 0, 2
  ] }), "{\"foo\":{\"elo\":12},\"mel\":[\"raz\",0,2]}");
  };
  