@luvio/adapter-test-library
Advanced tools
Comparing version 0.32.0 to 0.32.2
@@ -262,3 +262,3 @@ import sinon from 'sinon'; | ||
} | ||
returnSource[entryId] = entry; | ||
returnSource[entryId] = clone(entry); | ||
} | ||
@@ -274,3 +274,3 @@ return Promise.resolve(returnSource); | ||
for (const key of Object.keys(entries)) { | ||
returnSource[key] = entries[key]; | ||
returnSource[key] = clone(entries[key]); | ||
} | ||
@@ -317,3 +317,3 @@ return Promise.resolve(returnSource); | ||
ids.forEach(id => { | ||
existingEntries[id] = operation.entries[id]; | ||
existingEntries[id] = clone(operation.entries[id]); | ||
}); | ||
@@ -320,0 +320,0 @@ break; |
@@ -266,3 +266,3 @@ (function (global, factory) { | ||
} | ||
returnSource[entryId] = entry; | ||
returnSource[entryId] = clone(entry); | ||
} | ||
@@ -278,3 +278,3 @@ return Promise.resolve(returnSource); | ||
for (const key of Object.keys(entries)) { | ||
returnSource[key] = entries[key]; | ||
returnSource[key] = clone(entries[key]); | ||
} | ||
@@ -321,3 +321,3 @@ return Promise.resolve(returnSource); | ||
ids.forEach(id => { | ||
existingEntries[id] = operation.entries[id]; | ||
existingEntries[id] = clone(operation.entries[id]); | ||
}); | ||
@@ -324,0 +324,0 @@ break; |
@@ -269,3 +269,3 @@ (function (global, factory) { | ||
} | ||
returnSource[entryId] = entry; | ||
returnSource[entryId] = clone(entry); | ||
} | ||
@@ -282,3 +282,3 @@ return Promise.resolve(returnSource); | ||
var key = _a[_i]; | ||
returnSource[key] = entries[key]; | ||
returnSource[key] = clone(entries[key]); | ||
} | ||
@@ -327,3 +327,3 @@ return Promise.resolve(returnSource); | ||
ids.forEach(function (id) { | ||
existingEntries[id] = operation.entries[id]; | ||
existingEntries[id] = clone(operation.entries[id]); | ||
}); | ||
@@ -330,0 +330,0 @@ break; |
{ | ||
"name": "@luvio/adapter-test-library", | ||
"version": "0.32.0", | ||
"version": "0.32.2", | ||
"description": "Test library for luvio adapters", | ||
@@ -16,4 +16,4 @@ "main": "dist/umd/es2018/test-library.js", | ||
"devDependencies": { | ||
"@luvio/engine": "0.32.0", | ||
"@luvio/environments": "0.32.0", | ||
"@luvio/engine": "0.32.2", | ||
"@luvio/environments": "0.32.2", | ||
"@types/sinon": "^7.5.2" | ||
@@ -20,0 +20,0 @@ }, |
@@ -9,2 +9,3 @@ import { | ||
} from '@luvio/environments'; | ||
import { clone } from './utils'; | ||
export class MockDurableStore implements DurableStore { | ||
@@ -28,3 +29,3 @@ listeners = new Set<OnDurableStoreChangedListener>(); | ||
} | ||
returnSource[entryId] = entry; | ||
returnSource[entryId] = clone(entry); | ||
} | ||
@@ -41,3 +42,3 @@ return Promise.resolve(returnSource); | ||
for (const key of Object.keys(entries)) { | ||
returnSource[key] = entries[key]; | ||
returnSource[key] = clone(entries[key]); | ||
} | ||
@@ -91,3 +92,3 @@ return Promise.resolve(returnSource); | ||
ids.forEach(id => { | ||
existingEntries[id] = operation.entries[id]; | ||
existingEntries[id] = clone(operation.entries[id]); | ||
}); | ||
@@ -94,0 +95,0 @@ break; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68058
1647