Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
instafluff committed Jan 29, 2025
2 parents 5739468 + 0c8eeb8 commit bcb3a1b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
21 changes: 11 additions & 10 deletions dist/comfy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
// Comfy.JS v1.1.22
// Comfy.JS v1.1.23
var tmi = require( "tmi.js" );
var fetch = require( "node-fetch" );
var NodeSocket = require( "ws" );
Expand Down Expand Up @@ -268,7 +268,7 @@ async function eventSubConnectAsync( channel, password, clientId = null, channel
ws.send( JSON.stringify( { type: 'PONG' } ) );
return;
}
console.log( message );
// console.log( message );
switch( message.metadata.message_type ) {
case "session_welcome":
{
Expand Down Expand Up @@ -622,7 +622,7 @@ var comfyJS = {
useEventSub: true, // set to false to use PubSub
chatModes: {},
version: function() {
return "1.1.22";
return "1.1.23";
},
onError: function( error ) {
console.error( "Error:", error );
Expand Down Expand Up @@ -1272,18 +1272,19 @@ var getGlobal = function () {
throw new Error('unable to locate global object');
}

var global = getGlobal();
var globalObject = getGlobal();

module.exports = exports = global.fetch;
module.exports = exports = globalObject.fetch;

// Needed for TypeScript and Webpack.
if (global.fetch) {
exports.default = global.fetch.bind(global);
if (globalObject.fetch) {
exports.default = globalObject.fetch.bind(globalObject);
}

exports.Headers = global.Headers;
exports.Request = global.Request;
exports.Response = global.Response;
exports.Headers = globalObject.Headers;
exports.Request = globalObject.Request;
exports.Response = globalObject.Response;

}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],3:[function(require,module,exports){
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion dist/comfy.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/comfy.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "comfy.js",
"version": "1.1.22",
"version": "1.1.23",
"description": "Twitch-Integrated Bot Module for Coding Cafe",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit bcb3a1b

Please sign in to comment.