Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twurple/ebs-helper

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twurple/ebs-helper - npm Package Compare versions

Comparing version 7.0.3 to 7.1.0-pre.0

2

lib/classes/HelixExtensionSecretList.js

@@ -28,3 +28,3 @@ "use strict";

const { payload } = await (0, jose_1.jwtVerify)(token, jose_1.base64url.decode(secret), {
algorithms: ['HS256']
algorithms: ['HS256'],
});

@@ -31,0 +31,0 @@ return payload;

@@ -1,6 +0,5 @@

import type { UserIdResolvable } from '@twurple/common';
import { HelixExtension } from '@twurple/common';
import { HelixExtension, type UserIdResolvable } from '@twurple/common';
import { HelixExtensionConfigurationSegment } from './classes/HelixExtensionConfigurationSegment';
import { HelixExtensionSecretList } from './classes/HelixExtensionSecretList';
import type { BaseExternalJwtConfig } from './jwt';
import { type BaseExternalJwtConfig } from './jwt';
/**

@@ -7,0 +6,0 @@ * Configuration for an EBS call.

@@ -10,3 +10,3 @@ "use strict";

extension_id: config.clientId,
extension_version: version
extension_version: version,
};

@@ -18,3 +18,3 @@ }

return {
extension_id: config.clientId
extension_id: config.clientId,
};

@@ -27,3 +27,3 @@ }

extension_id: config.clientId,
delay: delay === null || delay === void 0 ? void 0 : delay.toString()
delay: delay === null || delay === void 0 ? void 0 : delay.toString(),
};

@@ -37,3 +37,3 @@ }

extension_version: version,
required_configuration: configVersion
required_configuration: configVersion,
};

@@ -47,3 +47,3 @@ }

segment,
broadcaster_id: (0, shared_utils_1.mapOptional)(broadcaster, common_1.extractUserId)
broadcaster_id: (0, shared_utils_1.mapOptional)(broadcaster, common_1.extractUserId),
};

@@ -59,3 +59,3 @@ }

content,
version
version,
};

@@ -74,3 +74,3 @@ }

extension_version: extensionVersion,
text
text,
};

@@ -89,3 +89,3 @@ }

target: ['global'],
message
message,
};

@@ -104,5 +104,5 @@ }

broadcaster_id: (0, common_1.extractUserId)(broadcaster),
message
message,
};
}
exports.createPubSubMessageBody = createPubSubMessageBody;

@@ -25,3 +25,3 @@ "use strict";

url: 'extensions',
query: (0, helpers_external_1.getExtensionQuery)(config, version)
query: (0, helpers_external_1.getExtensionQuery)(config, version),
}, config.clientId, jwt);

@@ -42,3 +42,3 @@ return (0, shared_utils_1.mapNullable)(result.data[0], data => new common_1.HelixExtension(data));

url: 'extensions/jwt/secrets',
query: (0, helpers_external_1.getExtensionSecretsQuery)(config)
query: (0, helpers_external_1.getExtensionSecretsQuery)(config),
}, config.clientId, jwt);

@@ -61,3 +61,3 @@ return new HelixExtensionSecretList_1.HelixExtensionSecretList(result.data[0]);

method: 'POST',
query: (0, helpers_external_1.getExtensionSecretCreateQuery)(config, delay)
query: (0, helpers_external_1.getExtensionSecretCreateQuery)(config, delay),
}, config.clientId, jwt);

@@ -82,3 +82,3 @@ return new HelixExtensionSecretList_1.HelixExtensionSecretList(result.data[0]);

query: (0, api_call_1.createBroadcasterQuery)(broadcaster),
jsonBody: (0, helpers_external_1.createExtensionRequiredConfigurationBody)(config, version, configVersion)
jsonBody: (0, helpers_external_1.createExtensionRequiredConfigurationBody)(config, version, configVersion),
}, config.clientId, jwt);

@@ -92,3 +92,3 @@ }

url: 'extensions/configurations',
query: (0, helpers_external_1.createConfigurationSegmentQuery)(config, segment, broadcaster)
query: (0, helpers_external_1.createConfigurationSegmentQuery)(config, segment, broadcaster),
}, config.clientId, jwt);

@@ -138,3 +138,3 @@ return (0, shared_utils_1.mapNullable)(result.data[0], data => new HelixExtensionConfigurationSegment_1.HelixExtensionConfigurationSegment(data));

method: 'PUT',
jsonBody: (0, helpers_external_1.createConfigurationSegmentBody)(config, segment, broadcaster, content, version)
jsonBody: (0, helpers_external_1.createConfigurationSegmentBody)(config, segment, broadcaster, content, version),
}, config.clientId, jwt);

@@ -199,3 +199,3 @@ }

query: (0, api_call_1.createBroadcasterQuery)(broadcaster),
jsonBody: (0, helpers_external_1.createChatMessageBody)(config, extensionVersion, text)
jsonBody: (0, helpers_external_1.createChatMessageBody)(config, extensionVersion, text),
}, config.clientId, jwt);

@@ -208,3 +208,3 @@ }

...config,
additionalData: (0, helpers_external_1.createPubSubMessageJwtData)(broadcaster, targets)
additionalData: (0, helpers_external_1.createPubSubMessageJwtData)(broadcaster, targets),
});

@@ -214,3 +214,3 @@ await (0, api_call_1.callTwitchApi)({

method: 'POST',
jsonBody: (0, helpers_external_1.createPubSubMessageBody)(targets, broadcaster, message)
jsonBody: (0, helpers_external_1.createPubSubMessageBody)(targets, broadcaster, message),
}, config.clientId, jwt);

@@ -229,3 +229,3 @@ }

...config,
additionalData: (0, helpers_external_1.createPubSubGlobalMessageJwtData)()
additionalData: (0, helpers_external_1.createPubSubGlobalMessageJwtData)(),
});

@@ -235,3 +235,3 @@ await (0, api_call_1.callTwitchApi)({

method: 'POST',
jsonBody: (0, helpers_external_1.createPubSubGlobalMessageBody)(message)
jsonBody: (0, helpers_external_1.createPubSubGlobalMessageBody)(message),
}, config.clientId, jwt);

@@ -238,0 +238,0 @@ }

@@ -1,2 +0,2 @@

export { getExtension, getExtensionSecrets, createExtensionSecret, setExtensionRequiredConfiguration, getExtensionGlobalConfiguration, getExtensionBroadcasterConfiguration, getExtensionDeveloperConfiguration, setExtensionGlobalConfiguration, setExtensionBroadcasterConfiguration, setExtensionDeveloperConfiguration, sendExtensionChatMessage, sendExtensionPubSubGlobalMessage, sendExtensionPubSubBroadcastMessage, sendExtensionPubSubWhisperMessage } from './helpers';
export { getExtension, getExtensionSecrets, createExtensionSecret, setExtensionRequiredConfiguration, getExtensionGlobalConfiguration, getExtensionBroadcasterConfiguration, getExtensionDeveloperConfiguration, setExtensionGlobalConfiguration, setExtensionBroadcasterConfiguration, setExtensionDeveloperConfiguration, sendExtensionChatMessage, sendExtensionPubSubGlobalMessage, sendExtensionPubSubBroadcastMessage, sendExtensionPubSubWhisperMessage, } from './helpers';
export type { EbsCallConfig } from './helpers';

@@ -3,0 +3,0 @@ export { createExternalJwt } from './jwt';

@@ -10,5 +10,5 @@ "use strict";

user_id: config.ownerId,
role: 'external'
role: 'external',
};
}
exports.createExternalJwtData = createExternalJwtData;
{
"name": "@twurple/ebs-helper",
"version": "7.0.3",
"version": "7.1.0-pre.0",
"publishConfig": {

@@ -37,4 +37,4 @@ "access": "public"

"@d-fischer/shared-utils": "^3.6.1",
"@twurple/api-call": "7.0.3",
"@twurple/common": "7.0.3",
"@twurple/api-call": "7.1.0-pre.0",
"@twurple/common": "7.1.0-pre.0",
"jose": "^4.14.4",

@@ -41,0 +41,0 @@ "tslib": "^2.0.3"

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc