sliftutils 0.7.13 → 0.7.15

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.
@@ -47,17 +47,19 @@ export function bundleRequire(config: BundleRequireConfig) {
47
47
  child_process: {},
48
48
  events: class EventEmitter { },
49
49
  };
50
- if (typeof document === "undefined" && typeof require !== "undefined") {
50
+ if (typeof require !== "undefined") {
51
51
  const builtInRequire = require;
52
52
  let allBuiltInModules = new Set<string>();
53
53
  allBuiltInModules.add("electron");
54
54
  allBuiltInModules.add("original-fs");
55
55
  allBuiltInModules.add("vscode");
56
- // Change the builts ins to use the actual built ins!
57
- let { builtinModules } = require("node:module");
58
- for (let key of builtinModules) {
59
- allBuiltInModules.add(key);
60
- }
56
+ try {
57
+ // Change the builts ins to use the actual built ins!
58
+ let { builtinModules } = require("node:module");
59
+ for (let key of builtinModules) {
60
+ allBuiltInModules.add(key);
61
+ }
62
+ } catch { }
61
63
 
62
64
  for (let key of allBuiltInModules) {
63
65
  Object.defineProperty(builtInModuleExports, key, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "0.7.13",
3
+ "version": "0.7.15",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -43,7 +43,7 @@
43
43
  "shell-quote": "^1.8.3",
44
44
  "socket-function": "^0.156.0",
45
45
  "typenode": "^6.0.0",
46
- "typesafecss": "^0.26.0",
46
+ "typesafecss": "*",
47
47
  "ws": "^8.18.3",
48
48
  "yargs": "15.4.1"
49
49
  },