@jsenv/urls 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/urls",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,5 @@
30
30
  "scripts": {
31
31
  "test": "node --conditions=development ./scripts/test.mjs"
32
32
  },
33
- "dependencies": {
34
- "@jsenv/log": "1.6.3"
35
- }
33
+ "dependencies": {}
36
34
  }
@@ -1,4 +1,5 @@
1
- import { isFileSystemPath, fileSystemPathToUrl } from "@jsenv/urls"
1
+ import { isFileSystemPath } from "./is_filesystem_path.js"
2
+ import { fileSystemPathToUrl } from "./filesystem_path_to_url.js"
2
3
 
3
4
  export const getCallerPosition = () => {
4
5
  const { prepareStackTrace } = Error
package/src/url_trace.js CHANGED
@@ -4,7 +4,6 @@
4
4
  // https://github.com/babel/babel/blob/eea156b2cb8deecfcf82d52aa1b71ba4995c7d68/packages/babel-code-frame/src/index.js#L1
5
5
 
6
6
  import { urlToFileSystemPath } from "./url_to_filesystem_path.js"
7
- import { ANSI } from "@jsenv/log"
8
7
 
9
8
  export const stringifyUrlTrace = (trace) => {
10
9
  let string = ""
@@ -83,14 +82,13 @@ export const showSourceLocation = ({
83
82
  column,
84
83
  numberOfSurroundingLinesToShow = 1,
85
84
  lineMaxLength = 120,
86
- color = false,
87
85
  } = {}) => {
88
86
  let mark = (string) => string
89
87
  let aside = (string) => string
90
- if (color) {
91
- mark = (string) => ANSI.color(string, ANSI.RED)
92
- aside = (string) => ANSI.color(string, ANSI.GREY)
93
- }
88
+ // if (color) {
89
+ // mark = (string) => ANSI.color(string, ANSI.RED)
90
+ // aside = (string) => ANSI.color(string, ANSI.GREY)
91
+ // }
94
92
 
95
93
  const lines = content.split(/\r?\n/)
96
94
  if (line === 0) line = 1