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

aws-sdk-wrap

Package Overview
Dependencies
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sdk-wrap - npm Package Compare versions

Comparing version 12.6.1 to 12.6.2

29

lib/module/dy/lock-manager.js

@@ -7,15 +7,24 @@ import crypto from 'crypto';

} = {}) => {
const model = Model({
name: lockTable,
attributes: {
id: { type: 'string', partitionKey: true },
guid: { type: 'string' },
leaseDurationMs: { type: 'number' },
lockAcquiredTimeUnixMs: { type: 'number' },
owner: { type: 'string' }
let mdl;
const getModelCached = () => {
if (mdl === undefined) {
mdl = Model({
name: lockTable,
attributes: {
id: { type: 'string', partitionKey: true },
guid: { type: 'string' },
leaseDurationMs: { type: 'number' },
lockAcquiredTimeUnixMs: { type: 'number' },
owner: { type: 'string' }
}
});
}
});
return mdl;
};
return {
_model: model,
get _model() {
return getModelCached();
},
lock: async (lockName) => {
const model = getModelCached();
const nowInMs = new Date() / 1;

@@ -22,0 +31,0 @@ const lockResult = await model.createOrReplace({

{
"name": "aws-sdk-wrap",
"type": "module",
"version": "12.6.1",
"version": "12.6.2",
"description": "Wrapper around aws-sdk",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

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