Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 522b656

Browse files
committed
update for latest SDK changes
1 parent 5ef0abf commit 522b656

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
declare module 'launchdarkly-node-server-sdk-dynamodb' {
1010
import { LDFeatureStore, LDLogger, LDOptions } from 'launchdarkly-node-server-sdk';
11-
import * as ld from 'launchdarkly-node-server-sdk';
11+
import { BigSegmentStore } from 'launchdarkly-node-server-sdk/interfaces';
1212
import { DynamoDB } from 'aws-sdk';
1313

1414
/**
@@ -36,7 +36,7 @@ declare module 'launchdarkly-node-server-sdk-dynamodb' {
3636
export function DynamoDBBigSegmentStore(
3737
tableName: string,
3838
options?: LDDynamoDBOptions
39-
): (config: LDOptions) => ld.interfaces.BigSegmentStore;
39+
): (config: LDOptions) => BigSegmentStore;
4040

4141
/**
4242
* Options for configuring [[DynamoDBFeatureStore]] or [[DynamoDBBigSegmentStore]].

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"jest": "^27.0.4",
2424
"jest-junit": "^12.2.0",
2525
"launchdarkly-js-test-helpers": "^1.2.1",
26-
"launchdarkly-node-server-sdk": "6.2.0-alpha.bigsegments.3",
26+
"launchdarkly-node-server-sdk": "6.2.0-alpha.bigsegments.5",
2727
"prettier": "^2.3.1",
2828
"typescript": "^4.3.2"
2929
},
@@ -41,7 +41,7 @@
4141
},
4242
"peerDependencies": {
4343
"aws-sdk": "^2.349.0",
44-
"launchdarkly-node-server-sdk": "6.2.0-alpha.bigsegments.3"
44+
"launchdarkly-node-server-sdk": "6.2.0-alpha.bigsegments.5"
4545
},
4646
"engines": {
4747
"node": ">= 12.0"

tests/dynamodb_stores-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function clearData(prefix) {
4141
const ops = [];
4242
const items = await paginationHelper({TableName: testTableName}, function (params, cb) { client.scan(params, cb); });
4343
for (var i = 0; i < items.length; i++) {
44-
if (actualPrefix && items[i].namespace.startsWith(actualPrefix)) {
44+
if (!actualPrefix || items[i].namespace.startsWith(actualPrefix)) {
4545
ops.push({
4646
DeleteRequest: {
4747
TableName: testTableName,

0 commit comments

Comments
 (0)