{"_id":"stack-frame-utils","_rev":"263790","name":"stack-frame-utils","description":"Utilities for working with stack frames.","dist-tags":{"latest":"0.4.0"},"maintainers":[{"name":"timer","email":""}],"time":{"modified":"2023-03-27T17:41:22.000Z","created":"2017-03-11T21:23:54.221Z","0.4.0":"2017-03-20T02:03:46.771Z","0.3.1":"2017-03-19T23:39:53.677Z","0.3.0":"2017-03-17T16:56:25.473Z","0.2.0":"2017-03-14T03:43:56.878Z","0.1.0":"2017-03-13T05:52:19.940Z","0.0.0":"2017-03-11T21:23:54.221Z"},"users":{},"author":{"name":"Joe Haddad","email":"timer150@gmail.com"},"repository":{"type":"git","url":"https://github.com/Timer/stack-frame/tree/master/packages/stack-frame-utils"},"versions":{"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","size":4537,"noattachment":false,"key":"/stack-frame-utils/-/stack-frame-utils-0.4.0.tgz","tarball":"http://name.csiicloud.com:7001/stack-frame-utils/download/stack-frame-utils-0.4.0.tgz"},"maintainers":[{"name":"timer","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.4.0.tgz_1489975424874_0.5453603805508465"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T02:38:44.335Z","publish_time":1489975426771,"_cnpm_publish_time":1489975426771},"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","size":4607,"noattachment":false,"key":"/stack-frame-utils/-/stack-frame-utils-0.3.1.tgz","tarball":"http://name.csiicloud.com:7001/stack-frame-utils/download/stack-frame-utils-0.3.1.tgz"},"maintainers":[{"name":"timer","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.3.1.tgz_1489966793036_0.14212059625424445"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T02:38:43.463Z","publish_time":1489966793677,"_cnpm_publish_time":1489966793677},"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","size":4079,"noattachment":false,"key":"/stack-frame-utils/-/stack-frame-utils-0.3.0.tgz","tarball":"http://name.csiicloud.com:7001/stack-frame-utils/download/stack-frame-utils-0.3.0.tgz"},"maintainers":[{"name":"timer","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.3.0.tgz_1489769783509_0.6023897610139102"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T02:38:42.592Z","publish_time":1489769785473,"_cnpm_publish_time":1489769785473},"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","size":3083,"noattachment":false,"key":"/stack-frame-utils/-/stack-frame-utils-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/stack-frame-utils/download/stack-frame-utils-0.2.0.tgz"},"maintainers":[{"name":"timer","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.2.0.tgz_1489463036169_0.9641292048618197"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T02:38:41.695Z","publish_time":1489463036878,"_cnpm_publish_time":1489463036878},"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","size":1821,"noattachment":false,"key":"/stack-frame-utils/-/stack-frame-utils-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/stack-frame-utils/download/stack-frame-utils-0.1.0.tgz"},"maintainers":[{"name":"timer","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.1.0.tgz_1489384337949_0.2734566475264728"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T02:38:40.802Z","publish_time":1489384339940,"_cnpm_publish_time":1489384339940},"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","size":1599,"noattachment":false,"key":"/stack-frame-utils/-/stack-frame-utils-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/stack-frame-utils/download/stack-frame-utils-0.0.0.tgz"},"maintainers":[{"name":"timer","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/stack-frame-utils-0.0.0.tgz_1489267433634_0.043843119870871305"},"directories":{},"_cnpmcore_publish_time":"2021-12-19T02:38:39.945Z","publish_time":1489267434221,"_cnpm_publish_time":1489267434221}},"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","_attachments":{},"license":"MIT"}