@sanity/export
Advanced tools
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"getUserAgent.d.ts","sourceRoot":"","sources":["../src/getUserAgent.ts"],"names":[],"mappings":"AAUA,wBAAgB,YAAY,IAAI,MAAM,CAQrC"} | ||
| {"version":3,"file":"getUserAgent.d.ts","sourceRoot":"","sources":["../src/getUserAgent.ts"],"names":[],"mappings":"AAWA,wBAAgB,YAAY,IAAI,MAAM,CASrC"} |
| import { readFileSync } from 'node:fs'; | ||
| import { join as joinPath } from 'node:path'; | ||
| import { dirname, join as joinPath } from 'node:path'; | ||
| import { fileURLToPath } from 'node:url'; | ||
| let ua = null; | ||
| export function getUserAgent() { | ||
| if (!ua) { | ||
| const data = readFileSync(joinPath(import.meta.dirname, '..', 'package.json'), 'utf-8'); | ||
| const dir = dirname(fileURLToPath(import.meta.url)); | ||
| const data = readFileSync(joinPath(dir, '..', 'package.json'), 'utf-8'); | ||
| const pkg = JSON.parse(data); | ||
@@ -8,0 +10,0 @@ ua = `${pkg.name}@${pkg.version}`; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"getUserAgent.js","sourceRoot":"","sources":["../src/getUserAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AACpC,OAAO,EAAC,IAAI,IAAI,QAAQ,EAAC,MAAM,WAAW,CAAA;AAO1C,IAAI,EAAE,GAAkB,IAAI,CAAA;AAE5B,MAAM,UAAU,YAAY;IAC1B,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CAAA;QACvF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAgB,CAAA;QAC3C,EAAE,GAAG,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,EAAE,CAAA;IACnC,CAAC;IAED,OAAO,EAAE,CAAA;AACX,CAAC"} | ||
| {"version":3,"file":"getUserAgent.js","sourceRoot":"","sources":["../src/getUserAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AACpC,OAAO,EAAC,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAC,MAAM,WAAW,CAAA;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAA;AAOtC,IAAI,EAAE,GAAkB,IAAI,CAAA;AAE5B,MAAM,UAAU,YAAY;IAC1B,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,MAAM,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QACnD,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CAAA;QACvE,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAgB,CAAA;QAC3C,EAAE,GAAG,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,EAAE,CAAA;IACnC,CAAC;IAED,OAAO,EAAE,CAAA;AACX,CAAC"} |
+1
-1
| { | ||
| "name": "@sanity/export", | ||
| "version": "6.0.5", | ||
| "version": "6.0.6", | ||
| "description": "Export Sanity documents and assets", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
| import {readFileSync} from 'node:fs' | ||
| import {join as joinPath} from 'node:path' | ||
| import {dirname, join as joinPath} from 'node:path' | ||
| import {fileURLToPath} from 'node:url' | ||
@@ -13,3 +14,4 @@ interface PackageJson { | ||
| if (!ua) { | ||
| const data = readFileSync(joinPath(import.meta.dirname, '..', 'package.json'), 'utf-8') | ||
| const dir = dirname(fileURLToPath(import.meta.url)) | ||
| const data = readFileSync(joinPath(dir, '..', 'package.json'), 'utf-8') | ||
| const pkg = JSON.parse(data) as PackageJson | ||
@@ -16,0 +18,0 @@ ua = `${pkg.name}@${pkg.version}` |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
216158
0.14%4058
0.1%