Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-current-line

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-current-line - npm Package Compare versions

Comparing version 6.7.0 to 6.8.0-next.1699888592.697745dba29914361cbedac85eacccae69760a5c

edition-es2022-esm/index.js

8

edition-deno/index.ts

@@ -138,3 +138,3 @@ /** The combination of location information about the line that was executing at the time */

locations: Array<Location>,
offset: Offset,
offset: Offset
): Location {

@@ -209,3 +209,3 @@ // Continue

immediate: true,
},
}
): string {

@@ -224,3 +224,3 @@ const locations = getLocationsFromError(error)

immediate: true,
},
}
): Location {

@@ -253,5 +253,5 @@ const locations = getLocationsFromError(error)

immediate: false,
},
}
): Location {
return getLocationFromError(new Error(), offset)
}
{
"name": "get-current-line",
"version": "6.7.0",
"version": "6.8.0-next.1699888592.697745dba29914361cbedac85eacccae69760a5c",
"description": "Get the current line number of the executing file and method",

@@ -11,3 +11,7 @@ "homepage": "https://github.com/bevry/get-current-line",

"debugging",
"es2017",
"deno",
"deno-edition",
"deno-entry",
"denoland",
"es2022",
"export-default",

@@ -109,4 +113,4 @@ "file",

{
"description": "TypeScript compiled against ES2017 for Node.js with Require for modules",
"directory": "edition-es2017",
"description": "TypeScript compiled against ES2022 for Node.js 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
"directory": "edition-es2022",
"entry": "index.js",

@@ -116,3 +120,3 @@ "tags": [

"javascript",
"es2017",
"es2022",
"require"

@@ -126,4 +130,4 @@ ],

{
"description": "TypeScript compiled against ES2017 for Node.js with Import for modules",
"directory": "edition-es2017-esm",
"description": "TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules",
"directory": "edition-es2022-esm",
"entry": "index.js",

@@ -133,3 +137,3 @@ "tags": [

"javascript",
"es2017",
"es2022",
"import"

@@ -141,2 +145,16 @@ ],

}
},
{
"description": "TypeScript source code made to be compatible with Deno",
"directory": "edition-deno",
"entry": "index.ts",
"tags": [
"typescript",
"import",
"deno"
],
"engines": {
"deno": true,
"browsers": true
}
}

@@ -146,7 +164,7 @@ ],

"type": "module",
"main": "edition-es2017/index.js",
"main": "edition-es2022/index.js",
"exports": {
"node": {
"import": "./edition-es2017-esm/index.js",
"require": "./edition-es2017/index.js"
"import": "./edition-es2022-esm/index.js",
"require": "./edition-es2022/index.js"
},

@@ -157,17 +175,18 @@ "browser": {

},
"deno": "edition-deno/index.ts",
"browser": "edition-browsers/index.js",
"module": "edition-browsers/index.js",
"devDependencies": {
"@bevry/update-contributors": "^1.22.0",
"@types/node": "^20.8.10",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"assert-helpers": "^8.4.0",
"eslint": "^8.52.0",
"eslint-config-bevry": "^3.28.0",
"@bevry/update-contributors": "^1.23.0",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"assert-helpers": "^11.2.0",
"eslint": "^8.53.0",
"eslint-config-bevry": "^3.29.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"kava": "^5.15.0",
"kava": "^7.1.0",
"make-deno-edition": "^1.3.0",
"prettier": "^3.0.3",
"prettier": "^3.1.0",
"projectz": "^2.23.0",

@@ -177,13 +196,13 @@ "surge": "^0.23.1",

"typescript": "5.2.2",
"valid-directory": "^4.0.0",
"valid-module": "^1.17.0"
"valid-directory": "^4.1.0",
"valid-module": "^2.1.0"
},
"scripts": {
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2017 && npm run our:compile:edition-es2017-esm && npm run our:compile:types",
"our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:types",
"our:compile:deno": "make-deno-edition --attempt",
"our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )",
"our:compile:edition-es2017": "tsc --module commonjs --target ES2017 --outDir ./edition-es2017 --project tsconfig.json && ( test ! -d edition-es2017/source || ( mv edition-es2017/source edition-temp && rm -Rf edition-es2017 && mv edition-temp edition-es2017 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2017/package.json",
"our:compile:edition-es2017-esm": "tsc --module ESNext --target ES2017 --outDir ./edition-es2017-esm --project tsconfig.json && ( test ! -d edition-es2017-esm/source || ( mv edition-es2017-esm/source edition-temp && rm -Rf edition-es2017-esm && mv edition-temp edition-es2017-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2017-esm/package.json",
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )",
"our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )",
"our:compile:edition-es2022": "tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json",
"our:compile:edition-es2022-esm": "tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json",
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )",
"our:deploy": "printf '%s\n' 'no need for this project'",

@@ -193,3 +212,3 @@ "our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz",

"our:meta:docs": "npm run our:meta:docs:typedoc",
"our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
"our:meta:docs:typedoc": "rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
"our:meta:projectz": "projectz compile",

@@ -210,3 +229,3 @@ "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",

"our:verify:prettier": "prettier --write .",
"test": "node ./edition-es2017/test.js"
"test": "node ./edition-es2022/test.js"
},

@@ -220,4 +239,5 @@ "eslintConfig": {

"semi": false,
"singleQuote": true
"singleQuote": true,
"trailingComma": "es5"
}
}
}

@@ -42,3 +42,3 @@ <!-- TITLE/ -->

console.log(
getCurrentLine(/* optional offset information in case the caller is wrapped */),
getCurrentLine(/* optional offset information in case the caller is wrapped */)
)

@@ -68,2 +68,8 @@ ```

<a href="https://deno.land" title="Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js"><h3>Deno</h3></a>
``` typescript
import pkg from 'https://unpkg.com/get-current-line@^6.8.0/edition-deno/index.ts'
```
<a href="https://www.skypack.dev" title="Skypack is a JavaScript Delivery Network for modern web apps"><h3>Skypack</h3></a>

@@ -73,3 +79,3 @@

<script type="module">
import pkg from '//cdn.skypack.dev/get-current-line@^6.7.0'
import pkg from '//cdn.skypack.dev/get-current-line@^6.8.0'
</script>

@@ -82,3 +88,3 @@ ```

<script type="module">
import pkg from '//unpkg.com/get-current-line@^6.7.0'
import pkg from '//unpkg.com/get-current-line@^6.8.0'
</script>

@@ -91,3 +97,3 @@ ```

<script type="module">
import pkg from '//dev.jspm.io/get-current-line@6.7.0'
import pkg from '//dev.jspm.io/get-current-line@6.8.0'
</script>

@@ -102,5 +108,6 @@ ```

<li><code>get-current-line/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>get-current-line</code> aliases <code>get-current-line/edition-es2017/index.js</code></li>
<li><code>get-current-line/edition-es2017/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#8th_Edition_-_ECMAScript_2017" title="ECMAScript ES2017">ES2017</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>get-current-line/edition-es2017-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#8th_Edition_-_ECMAScript_2017" title="ECMAScript ES2017">ES2017</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li></ul>
<li><code>get-current-line</code> aliases <code>get-current-line/edition-es2022/index.js</code></li>
<li><code>get-current-line/edition-es2022/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>get-current-line/edition-es2022-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>get-current-line/edition-deno/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code made to be compatible with <a href="https://deno.land" title="Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js">Deno</a></li></ul>

@@ -107,0 +114,0 @@ <!-- /INSTALL -->

@@ -138,3 +138,3 @@ /** The combination of location information about the line that was executing at the time */

locations: Array<Location>,
offset: Offset,
offset: Offset
): Location {

@@ -209,3 +209,3 @@ // Continue

immediate: true,
},
}
): string {

@@ -224,3 +224,3 @@ const locations = getLocationsFromError(error)

immediate: true,
},
}
): Location {

@@ -253,5 +253,5 @@ const locations = getLocationsFromError(error)

immediate: false,
},
}
): Location {
return getLocationFromError(new Error(), offset)
}

@@ -9,3 +9,3 @@ {

"strict": true,
"target": "ES2017",
"target": "ES2022",
"module": "ESNext"

@@ -12,0 +12,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc