Compare commits
5 Commits
v0.0.2-dev
...
v0.0.2-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 68e7165bb2 | |
Derrick Hammer | 144474c621 | |
Derrick Hammer | 0f9318306f | |
Derrick Hammer | 7697a03722 | |
Derrick Hammer | 589d6395db |
|
@ -3,6 +3,7 @@
|
|||
"@lumeweb/presetter-kernel-module-preset"
|
||||
],
|
||||
"config": {
|
||||
"official": true
|
||||
"official": true,
|
||||
"browser": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1,8 @@
|
|||
## [0.0.2-develop.2](https://git.lumeweb.com/LumeWeb/kernel-discovery-irc/compare/v0.0.2-develop.1...v0.0.2-develop.2) (2023-07-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* need to update build configuration, and use a custom rollup ([0f93183](https://git.lumeweb.com/LumeWeb/kernel-discovery-irc/commit/0f9318306ffd52f4020391e39cd04545e7a42c72))
|
||||
|
||||
## [0.0.2-develop.1](https://git.lumeweb.com/LumeWeb/kernel-discovery-irc/compare/v0.0.1...v0.0.2-develop.1) (2023-07-01)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-discovery-irc",
|
||||
"version": "0.0.2-develop.1",
|
||||
"version": "0.0.2-develop.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"prepare": "presetter bootstrap",
|
||||
|
@ -8,22 +8,19 @@
|
|||
"semantic-release": "semantic-release"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.20",
|
||||
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.30",
|
||||
"@rollup/plugin-alias": "^5.0.0",
|
||||
"@rollup/plugin-inject": "^5.0.3",
|
||||
"presetter": "*"
|
||||
},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"dependencies": {
|
||||
"@lumeweb/kernel-peer-discovery-client": "^0.0.2-develop.4",
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.9",
|
||||
"@lumeweb/peer-discovery-irc": "^0.0.2-develop.1"
|
||||
"@lumeweb/kernel-peer-discovery-client": "^0.0.2-develop.9",
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.14",
|
||||
"@lumeweb/peer-discovery-irc": "^0.0.2-develop.3"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "gitea@git.lumeweb.com:LumeWeb/kernel-discovery-irc.git"
|
||||
},
|
||||
"browser": {
|
||||
"crypto": false,
|
||||
"net": "./build/net.js",
|
||||
"tls": "./build/net.js"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
diff --git a/dist/src/irc.js b/dist/src/irc.js
|
||||
index fd7a55d6bb09a961921e58e6bff1a7028c61bb47..c96cbca5e904b5ba0312d7ae273e537e66e22fb9 100644
|
||||
--- a/dist/src/irc.js
|
||||
+++ b/dist/src/irc.js
|
||||
@@ -9,6 +9,7 @@ import defaultsdeep from 'lodash.defaultsdeep';
|
||||
import { TypedEmitter } from 'tiny-typed-emitter';
|
||||
import { CyclingPingTimer } from './cyclingPingTimer.js';
|
||||
import { parseMessage } from './parseMessage.js';
|
||||
+import { Buffer } from 'buffer';
|
||||
const log = debug('irc');
|
||||
const lineDelimiter = new RegExp(/\r\n|\r|\n/);
|
||||
const defaultOptions = {
|
|
@ -1,36 +0,0 @@
|
|||
diff --git a/browser.js b/browser.js
|
||||
index e07f78d17b7b4a2963e4f0062047cc96e6025f9e..a9f266a2644f3f8ebd0f6684b3e11a7519059851 100644
|
||||
--- a/browser.js
|
||||
+++ b/browser.js
|
||||
@@ -3,6 +3,7 @@ const base64 = require('./lib/base64')
|
||||
const hex = require('./lib/hex')
|
||||
const utf8 = require('./lib/utf8')
|
||||
const utf16le = require('./lib/utf16le')
|
||||
+const Buffer = require('buffer').Buffer
|
||||
|
||||
const LE = new Uint8Array(Uint16Array.of(0xff).buffer)[0] === 0xff
|
||||
|
||||
diff --git a/index.js b/index.js
|
||||
index a751d6b4d27c7dd903efbfdc87a98f61044a62b8..8bd32640afdcfbc475168d458c51f8b9162d1656 100644
|
||||
--- a/index.js
|
||||
+++ b/index.js
|
||||
@@ -1,3 +1,5 @@
|
||||
+const Buffer = require('buffer').Buffer
|
||||
+
|
||||
function isBuffer (value) {
|
||||
return Buffer.isBuffer(value) || value instanceof Uint8Array
|
||||
}
|
||||
diff --git a/package.json b/package.json
|
||||
index eb0f792709b27e66f26658054781b4099507b5ed..69c4ff39c48b0bdd5f0bc7ebbade517e7c5d76e4 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -8,9 +8,6 @@
|
||||
"index.js",
|
||||
"lib"
|
||||
],
|
||||
- "browser": {
|
||||
- "./index.js": "./browser.js"
|
||||
- },
|
||||
"scripts": {
|
||||
"test": "standard && brittle test/*.mjs"
|
||||
},
|
|
@ -0,0 +1,63 @@
|
|||
// @ts-nocheck
|
||||
import * as import0 from "@rollup/plugin-json";
|
||||
import * as import1 from "@rollup/plugin-node-resolve";
|
||||
import * as import2 from "@rollup/plugin-commonjs";
|
||||
import * as import3 from "@rollup/plugin-graphql";
|
||||
import * as import4 from "@rollup/plugin-image";
|
||||
import * as import5 from "@rollup/plugin-yaml";
|
||||
import * as import6 from "rollup-plugin-postcss";
|
||||
import * as import7 from "rollup-plugin-visualizer";
|
||||
import * as import8 from "@rollup/plugin-wasm";
|
||||
import * as import9 from "@rollup/plugin-alias";
|
||||
import * as import10 from "@rollup/plugin-inject";
|
||||
export default {
|
||||
input: "build/index.js",
|
||||
output: [
|
||||
{
|
||||
file: "lib/index.js",
|
||||
format: "cjs",
|
||||
sourcemap: false,
|
||||
inlineDynamicImports: true,
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
import0.default(...([] as const)),
|
||||
import9.default({
|
||||
entries: [
|
||||
{
|
||||
find: "net",
|
||||
replacement: "./build/net.js",
|
||||
},
|
||||
{
|
||||
find: "tls",
|
||||
replacement: "./build/net.js",
|
||||
},
|
||||
],
|
||||
}),
|
||||
import1.default(
|
||||
...([
|
||||
{
|
||||
browser: true,
|
||||
preferBuiltins: false,
|
||||
dedupe: [
|
||||
"@lumeweb/libkernel",
|
||||
"@lumeweb/libweb",
|
||||
"@lumeweb/libportal",
|
||||
],
|
||||
},
|
||||
] as const),
|
||||
),
|
||||
import2.default(
|
||||
...([{ extensions: [".js", ".jsx", ".ts", ".tsx"] }] as const),
|
||||
),
|
||||
import10.default({
|
||||
Buffer: ["buffer", "Buffer"],
|
||||
}),
|
||||
import3.default(...([] as const)),
|
||||
import4.default(...([] as const)),
|
||||
import5.default(...([] as const)),
|
||||
import6.default(...([{ inject: { insertAt: "top" } }] as const)),
|
||||
import7.visualizer(...([] as const)),
|
||||
import8.default(...([{ targetEnv: "auto-inline" }] as const)),
|
||||
],
|
||||
};
|
Loading…
Reference in New Issue