@bentley/imodeljs-native
Advanced tools
Comparing version
/** @packageDocumentation | ||
* @module iModels | ||
*/ | ||
/// <reference types="node" /> | ||
import * as child_process from "child_process"; | ||
import * as child_process from "node:child_process"; | ||
/** | ||
@@ -7,0 +6,0 @@ * @note This package may only have **dev** dependencies on @itwin packages, so they are *not* available at runtime. Therefore we can only import **types** from them. |
@@ -11,6 +11,6 @@ "use strict"; | ||
exports.NativeCloudSqlite = void 0; | ||
const child_process = require("child_process"); | ||
const fs = require("fs"); | ||
const os = require("os"); | ||
const path = require("path"); | ||
const child_process = require("node:child_process"); | ||
const fs = require("node:fs"); | ||
const os = require("node:os"); | ||
const path = require("node:path"); | ||
const NativeLibrary_1 = require("./NativeLibrary"); | ||
@@ -50,3 +50,3 @@ // cspell:ignore polltime cachesize notimestamps deletetime gctime retrytime nwrite ndelete prefetch httptimeout | ||
NativeCloudSqlite.Daemon = Daemon; | ||
})(NativeCloudSqlite = exports.NativeCloudSqlite || (exports.NativeCloudSqlite = {})); | ||
})(NativeCloudSqlite || (exports.NativeCloudSqlite = NativeCloudSqlite = {})); | ||
//# sourceMappingURL=NativeCloudSqlite.js.map |
@@ -8,4 +8,4 @@ "use strict"; | ||
exports.NativeLibrary = exports.NativeLoggerCategory = void 0; | ||
const os = require("os"); | ||
const path = require("path"); | ||
const os = require("node:os"); | ||
const path = require("node:path"); | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
@@ -57,6 +57,6 @@ /* eslint-disable no-restricted-syntax */ | ||
try { | ||
require("./devbuild.json"); | ||
require.resolve("./devbuild.json"); | ||
return true; | ||
} | ||
catch (_e) { | ||
catch { | ||
return false; | ||
@@ -75,3 +75,4 @@ } | ||
else { | ||
this._nativeLib = require(`./${NativeLibrary.archName}/${NativeLibrary.nodeAddonName}`); // eslint-disable-line @typescript-eslint/no-var-requires | ||
this._nativeLib = | ||
require(`./${NativeLibrary.archName}/${NativeLibrary.nodeAddonName}`); // eslint-disable-line @typescript-eslint/no-require-imports | ||
} | ||
@@ -78,0 +79,0 @@ } |
{ | ||
"name": "@bentley/imodeljs-native", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"version": "5.0.38", | ||
"version": "5.0.39", | ||
"main": "imodeljs-native.js", | ||
@@ -12,4 +12,5 @@ "typings": "imodeljs-native", | ||
"repository": { | ||
"type" : "git", | ||
"url" : "https://github.com/imodeljs/imodeljs" | ||
"type": "git", | ||
"url": "https://github.com/iTwin/imodel-native.git", | ||
"directory": "iModelJsNodeAddon/api_package/ts" | ||
}, | ||
@@ -16,0 +17,0 @@ "description": "iModel.js native module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
227957
0.37%4
-20%1
-50%1847
-0.11%