{"_id":"stack-frame-utils","_rev":"15-377f7b9090041eecba9f40bd3f7764b9","name":"stack-frame-utils","description":"Utilities for working with stack frames.","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.0":{"name":"stack-frame-utils","version":"0.0.0","description":"Utilities for working with stack frames.","scripts":{"prepublishOnly":"npm run build && npm test","build":"babel src/ -d lib/","test":"exit 0"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/Timer/stack-frame/tree/master/packages/stack-frame-utils"},"author":{"name":"Joe Haddad","email":"timer150@gmail.com"},"license":"MIT","files":["lib/"],"devDependencies":{"babel-cli":"^6.23.0","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"^1.2.1","source-map":"^0.5.6","stack-frame":"^0.0.0"},"dependencies":{"babel-runtime":"^6.23.0"},"peerDependencies":{"source-map":"^0.5.6","stack-frame":"^0.0.0"},"_id":"stack-frame-utils@0.0.0","_shasum":"eef1d804e5c50cd66ab12d85642ad0bb8b91b8f4","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.10.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"shasum":"eef1d804e5c50cd66ab12d85642ad0bb8b91b8f4","tarball":"https://registry.npmjs.org/stack-frame-utils/-/stack-frame-utils-0.0.0.tgz","integrity":"sha512-zx7UdPGL9bL1x6e40lZ78pFod09OaaxWTsK/6seXR+wGrJgesZqwaCq+ITZbkYIL+SbVoVZQZTPovZwrllFo0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDK0aAcq3O4wiL9bxWHYjVCHJ6DuwPxAAk5V8Pcthf8/AiBJWWJ8IHm3R9kgzTWzZo/w8ax+Q3FaaLzSL15yAfm2Eg=="}]},"maintainers":[{"name":"timer","email":"timer150@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.0.0.tgz_1489267433634_0.043843119870871305"},"directories":{}},"0.1.0":{"name":"stack-frame-utils","version":"0.1.0","description":"Utilities for working with stack frames.","scripts":{"prepublishOnly":"npm run build && npm test","build":"../../node_modules/.bin/babel src/ -d lib/","test":"exit 0"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/Timer/stack-frame/tree/master/packages/stack-frame-utils"},"author":{"name":"Joe Haddad","email":"timer150@gmail.com"},"license":"MIT","files":["lib/"],"devDependencies":{"source-map":"^0.5.6","stack-frame":"^0.1.0"},"dependencies":{"babel-runtime":"^6.23.0"},"peerDependencies":{"source-map":"^0.5.6","stack-frame":"^0.1.0"},"_id":"stack-frame-utils@0.1.0","_shasum":"1d9184e1ef59fc89338e213f1819163a0eda7564","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.10.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"shasum":"1d9184e1ef59fc89338e213f1819163a0eda7564","tarball":"https://registry.npmjs.org/stack-frame-utils/-/stack-frame-utils-0.1.0.tgz","integrity":"sha512-juarg3fZ4y+9RP19AK1H1OELq5zO+CiiIM63X8hJavY20S1sY8BpK5NjqQaYNc7F0VRNy/LSJ8b160GvoR7a+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6kJiTjNPXsKoKXhM/C0rO0WtW2ZgkC/UVjL0/r7BdBgIgbHe/2evcp0aXZkjpn+PEgQWcspuPnjLkbMJrEXznMlM="}]},"maintainers":[{"name":"timer","email":"timer150@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.1.0.tgz_1489384337949_0.2734566475264728"},"directories":{}},"0.2.0":{"name":"stack-frame-utils","version":"0.2.0","description":"Utilities for working with stack frames.","scripts":{"prepublishOnly":"npm run build && npm test","build":"../../node_modules/.bin/babel src/ -d lib/","test":"exit 0"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/Timer/stack-frame/tree/master/packages/stack-frame-utils"},"author":{"name":"Joe Haddad","email":"timer150@gmail.com"},"license":"MIT","files":["lib/"],"dependencies":{"babel-runtime":"^6.23.0","source-map":"^0.5.6"},"devDependencies":{"stack-frame":"^0.1.1"},"peerDependencies":{"stack-frame":"^0.1.1"},"_id":"stack-frame-utils@0.2.0","_shasum":"323c00d010e2ee9b2181d64009de098c0720952d","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.10.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"shasum":"323c00d010e2ee9b2181d64009de098c0720952d","tarball":"https://registry.npmjs.org/stack-frame-utils/-/stack-frame-utils-0.2.0.tgz","integrity":"sha512-ljFbounx5q/pBJ2KC+YNHW96MKDk5FLe03abocAhCfECLqHqqGjCdzOYpal0/0C7KQkxHHEcSgPTtk+CTJpSWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG80IV9xob5reqfjsQMNhJZT0V2qlLLGCawOkyE32IBCAiEAslzkYOAKJljTnyVkt35ki/mzD+8C6fYpNc0awDRXpK0="}]},"maintainers":[{"name":"timer","email":"timer150@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.2.0.tgz_1489463036169_0.9641292048618197"},"directories":{}},"0.3.0":{"name":"stack-frame-utils","version":"0.3.0","description":"Utilities for working with stack frames.","scripts":{"prepublishOnly":"npm run build && npm test","build":"../../node_modules/.bin/babel src/ -d lib/","test":"../../node_modules/.bin/jest"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/Timer/stack-frame/tree/master/packages/stack-frame-utils"},"author":{"name":"Joe Haddad","email":"timer150@gmail.com"},"license":"MIT","files":["lib/"],"dependencies":{"babel-runtime":"^6.23.0","source-map":"^0.5.6"},"devDependencies":{"stack-frame":"^0.2.0"},"peerDependencies":{"stack-frame":"^0.2.0"},"jest":{"setupFiles":["./src/__tests__/setupJest.js"],"collectCoverage":true,"coverageReporters":["json"],"testMatch":["<rootDir>/src/**/__tests__/**/*.js?(x)","<rootDir>/src/**/?(*.)(spec|test).js?(x)"],"testPathIgnorePatterns":["/node_modules/","/fixtures/","setupJest.js"]},"_id":"stack-frame-utils@0.3.0","_shasum":"84108ac8c34e49092d4c0e2545790cc494112a03","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.10.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"shasum":"84108ac8c34e49092d4c0e2545790cc494112a03","tarball":"https://registry.npmjs.org/stack-frame-utils/-/stack-frame-utils-0.3.0.tgz","integrity":"sha512-505ejevpmNq1AuDWFTxg3+pkx7f/xZPKyimDPoVl20SbN+5NWYS7mx9YGrvKXvh4U/8tbXUunaBB7BW9JRBQ5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+rlEaEv6Q5DkSoQShqm9b4jySmWa4XkpEhZ1XiNTK4AIhALyL2pDVeRAs1b1C5VrI34hDoIMXV5FV2ssAO6xBrfhv"}]},"maintainers":[{"name":"timer","email":"timer150@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.3.0.tgz_1489769783509_0.6023897610139102"},"directories":{}},"0.3.1":{"name":"stack-frame-utils","version":"0.3.1","description":"Utilities for working with stack frames.","scripts":{"prepublishOnly":"npm run build && npm test","build":"../../node_modules/.bin/babel src/ -d lib/","test":"../../node_modules/.bin/jest"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/Timer/stack-frame/tree/master/packages/stack-frame-utils"},"author":{"name":"Joe Haddad","email":"timer150@gmail.com"},"license":"MIT","files":["lib/"],"dependencies":{"babel-runtime":"^6.23.0","source-map":"^0.5.6"},"devDependencies":{"stack-frame":"^0.2.0"},"peerDependencies":{"stack-frame":"^0.2.0"},"jest":{"setupFiles":["./src/__tests__/setupJest.js"],"collectCoverage":true,"coverageReporters":["json"],"testMatch":["<rootDir>/src/**/__tests__/**/*.js?(x)","<rootDir>/src/**/?(*.)(spec|test).js?(x)"],"testPathIgnorePatterns":["/node_modules/","/fixtures/","setupJest.js"]},"_id":"stack-frame-utils@0.3.1","_shasum":"dc01d429f6e5489b04f97a20dcc994548c5631cd","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.10.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"shasum":"dc01d429f6e5489b04f97a20dcc994548c5631cd","tarball":"https://registry.npmjs.org/stack-frame-utils/-/stack-frame-utils-0.3.1.tgz","integrity":"sha512-u5bw4aibLtE5eMIfUdBiEnCuBeGq5jdSgSRW1907o9gyIPOOsgSWPienTTCoxaVJIiNRUtCxU2oRr1hkAgiu2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1KgSgF0E9ltSmu8UUr/dtlaKRS52Hwz7yniVqZdDhmAIgGgn3baj/6MxwnQQhAPkUWpmGF405YCASlbjC7YSqR7Y="}]},"maintainers":[{"name":"timer","email":"timer150@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.3.1.tgz_1489966793036_0.14212059625424445"},"directories":{}},"0.4.0":{"name":"stack-frame-utils","version":"0.4.0","description":"Utilities for working with stack frames.","scripts":{"prepublishOnly":"npm run build && npm test","build":"../../node_modules/.bin/babel src/ -d lib/","test":"../../node_modules/.bin/jest"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/Timer/stack-frame/tree/master/packages/stack-frame-utils"},"author":{"name":"Joe Haddad","email":"timer150@gmail.com"},"license":"MIT","files":["lib/"],"dependencies":{"babel-runtime":"^6.23.0","source-map":"^0.5.6"},"devDependencies":{"stack-frame":"0.4.0"},"peerDependencies":{"stack-frame":"0.4.0"},"jest":{"setupFiles":["./src/__tests__/setupJest.js"],"collectCoverage":true,"coverageReporters":["json"],"testMatch":["<rootDir>/src/**/__tests__/**/*.js?(x)","<rootDir>/src/**/?(*.)(spec|test).js?(x)"],"testPathIgnorePatterns":["/node_modules/","/fixtures/","setupJest.js"]},"_id":"stack-frame-utils@0.4.0","_shasum":"3ecd38765690c1e2ee7127057cc11ac3b7038d36","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.10.0","_npmUser":{"name":"timer","email":"timer150@gmail.com"},"dist":{"shasum":"3ecd38765690c1e2ee7127057cc11ac3b7038d36","tarball":"https://registry.npmjs.org/stack-frame-utils/-/stack-frame-utils-0.4.0.tgz","integrity":"sha512-fqm4zF7S7DJ5tmTOVtFb9fksx8x77izDF9oDqS0lBvPTc1swV1xuRZPLpFUQ/xDV0aMdnnV1lR7fOqQFeUgSZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeYInYpZa67w8Jd6axHa0V42w1wCgmsxM7nrnQvZblKwIhALbhPQ9Ih7RRbu/jUGzCq/DGRM9En4ETVJgjyM+F1Z4q"}]},"maintainers":[{"name":"timer","email":"timer150@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.4.0.tgz_1489975424874_0.5453603805508465"},"directories":{}}},"readme":"# `stack-frame-utils`\n\nUtilities for working with stack frames.\n\n# API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## getLinesAround\n\n**Parameters**\n\n-   `line` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** The line number to provide context around.\n-   `count` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** The number of lines you'd like for context.\n-   `lines` **([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String))** The source code.\n\nReturns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;ScriptLine>** \n\n## getSourceMap\n\nReturns an instance of <code>[SourceMap](#sourcemap)</code> for a given fileUri and fileContents.\n\n**Parameters**\n\n-   `fileUri` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The URI of the source file.\n-   `fileContents` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The contents of the source file.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[SourceMap](#sourcemap)>** \n\n## SourceMap\n\nA wrapped instance of a <code>[SourceMapConsumer](https://github.com/mozilla/source-map)</code>.\n\nThis exposes methods which will be indifferent to changes made in <code>[source-map](https://github.com/mozilla/source-map)</code>.\n\n### getOriginalPosition\n\nReturns the original code position for a generated code position.\n\n**Parameters**\n\n-   `line` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** The line of the generated code position.\n-   `column` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** The column of the generated code position.\n\nReturns **{source: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), line: [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number), column: [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)}** \n\n### getGeneratedPosition\n\nReturns the generated code position for an original position.\n\n**Parameters**\n\n-   `source` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The source file of the original code position.\n-   `line` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** The line of the original code position.\n-   `column` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** The column of the original code position.\n\nReturns **{line: [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number), column: [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)}** \n\n### getSource\n\nReturns the code for a given source file name.\n\n**Parameters**\n\n-   `sourceName` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The name of the source file.\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** \n","maintainers":[{"name":"timer","email":"timer150@gmail.com"}],"time":{"modified":"2022-06-26T23:38:40.239Z","created":"2017-03-11T21:23:54.221Z","0.0.0":"2017-03-11T21:23:54.221Z","0.1.0":"2017-03-13T05:52:19.940Z","0.2.0":"2017-03-14T03:43:56.878Z","0.3.0":"2017-03-17T16:56:25.473Z","0.3.1":"2017-03-19T23:39:53.677Z","0.4.0":"2017-03-20T02:03:46.771Z"},"repository":{"type":"git","url":"https://github.com/Timer/stack-frame/tree/master/packages/stack-frame-utils"},"author":{"name":"Joe Haddad","email":"timer150@gmail.com"},"license":"MIT","readmeFilename":"README.md"}