get-source
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "get-source", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Platform-agnostic source code inspection, with sourcemaps support", | ||
@@ -5,0 +5,0 @@ "main": "get-source", |
@@ -30,3 +30,3 @@ # get-source | ||
Will read `./scripts/index.min.js` synchronously (either via XHR, or by filesystem API, depending on the environment). Result will contain the following fields: | ||
Will read the file synchronously (either via XHR or by filesystem API, depending on the environment). Result will contain the following fields: | ||
@@ -51,4 +51,4 @@ ```javascript | ||
column: <original column number>, | ||
sourceFile: <original source file object> | ||
sourceLine: <original source line text, trimmed> | ||
sourceFile: <original source file object>, | ||
sourceLine: <original source line text> | ||
} | ||
@@ -61,4 +61,2 @@ ``` | ||
In case of a nonexistent file: | ||
```javascript | ||
@@ -75,2 +73,2 @@ nonsense = getSource ('/some/nonexistent/file') | ||
resolved.sourceLine // empty string (so it's safe to access without checking) | ||
``` | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14538
71