Skip to content

Commit

Permalink
Mises à jour
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Jan 21, 2024
1 parent 4394a7f commit 650de8c
Show file tree
Hide file tree
Showing 4 changed files with 1,484 additions and 2,313 deletions.
32 changes: 0 additions & 32 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,6 @@
import path, { dirname } from "path";
import { fileURLToPath } from "url";
import { createRequire } from "module";

const require = createRequire(import.meta.url);

const __dirname = dirname(fileURLToPath(import.meta.url));

// https://github.com/node-webrtc/node-webrtc/issues/636#issuecomment-774171409
process.on("beforeExit", (code) => process.exit(code));

// https://github.com/ipfs/aegir/blob/master/md/migration-to-v31.md
const esbuild = {
// this will inject all the named exports from 'node-globals.js' as globals
inject: [path.join(__dirname, "./scripts/node-globals.js")],
external: ["fs", "path", "os", "chokidar", "url", "zlib", "rimraf"],
plugins: [
{
name: "node built ins", // this will make the bundler resolve node builtins to the respective browser polyfill
setup(build) {
build.onResolve({ filter: /^stream$/ }, () => {
return { path: require.resolve("stream-browserify") };
});
build.onResolve({ filter: /^os$/ }, () => {
return { path: require.resolve("os-browserify") };
});
build.onResolve({ filter: /^crypto$/ }, () => {
return { path: require.resolve("crypto-browserify") };
});
build.onResolve({ filter: /^fs/ }, () => {
return { path: require.resolve("browserify-fs") };
});
},
},
],
};

/** @type {import('aegir').PartialOptions} */
Expand Down
36 changes: 15 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,46 +35,40 @@
"@constl/utils-tests": "^0.2.3",
"@types/crypto-js": "^4.2.1",
"@types/deep-equal": "^1.0.4",
"@types/mocha": "^10.0.4",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"aegir": "^42.0.0",
"browserify-fs": "^1.0.0",
"buffer": "^6.0.3",
"core-js": "^3.33.2",
"crypto-browserify": "^3.12.0",
"eslint": "^8.53.0",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.5",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"aegir": "^42.2.2",
"core-js": "^3.35.1",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"mocha": "^10.2.0",
"os-browserify": "^0.3.0",
"playwright": "^1.39.0",
"prettier": "^3.0.3",
"process": "^0.11.10",
"playwright": "^1.41.1",
"prettier": "^3.2.4",
"source-map-support": "^0.5.21",
"ts-patch": "^3.0.2",
"ts-patch": "^3.1.2",
"tsconfig-paths": "^4.2.0",
"tscpaths": "^0.0.9",
"typescript": "5.2.2",
"typescript-transform-paths": "^3.4.6"
},
"dependencies": {
"@achingbrain/nat-port-mapper": "1.0.8",
"@chriscdn/promise-semaphore": "^2.0.8",
"@orbitdb/core": "^1.0.0",
"@chriscdn/promise-semaphore": "^2.0.9",
"browser-fs-access": "^0.35.0",
"deep-equal": "^2.2.3",
"events": "^3.3.0",
"genversion": "^3.1.1",
"genversion": "^3.2.0",
"jszip": "^3.10.1",
"multiformats": "9.9.0",
"rimraf": "^5.0.5",
"uint8arrays": "^4.0.6",
"uint8arrays": "^4.0.10",
"wherearewe": "^2.0.1"
}
}
Loading

0 comments on commit 650de8c

Please sign in to comment.