feat!: @rudder/sdk 0.1.0: createClient, idempotent modules.call retries, storage save(type, data), drop resources and projectStorage
This commit is contained in:
@@ -19,9 +19,7 @@ describe('public API surface', () => {
|
||||
'PlayerDomain',
|
||||
'CatalogDomain',
|
||||
'StorageDomain',
|
||||
'ProjectStorageDomain',
|
||||
'ModulesDomain',
|
||||
'ResourcesDomain',
|
||||
]) {
|
||||
expect(name in sdk).toBe(false);
|
||||
}
|
||||
@@ -40,6 +38,8 @@ describe('public API surface', () => {
|
||||
it('exposes the expected value exports', () => {
|
||||
for (const name of [
|
||||
'RudderClient',
|
||||
'createClient',
|
||||
'RudderModuleError',
|
||||
'RudderError',
|
||||
'RudderNetworkError',
|
||||
'RudderHttpError',
|
||||
@@ -67,10 +67,10 @@ describe('public API surface', () => {
|
||||
expect(client.player).toBeDefined();
|
||||
expect(client.catalog).toBeDefined();
|
||||
expect(client.storage).toBeDefined();
|
||||
expect(client.projectStorage).toBeDefined();
|
||||
expect(client.modules).toBeDefined();
|
||||
expect(typeof client.modules.call).toBe('function');
|
||||
expect(typeof client.resources).toBe('function');
|
||||
expect('resources' in client).toBe(false);
|
||||
expect('projectStorage' in client).toBe(false);
|
||||
|
||||
expect('battlePass' in client).toBe(false);
|
||||
expect('quests' in client).toBe(false);
|
||||
|
||||
Reference in New Issue
Block a user