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

sqslite

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqslite - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

lib/actions/tag-queue.js

40

CHANGELOG.md

@@ -10,2 +10,37 @@ ## Changelog

### v0.2.0 (2020-08-18)
- [`#94`](https://github.com/lifion/sqslite/pull/94): Update dependency @types/node to ^14.6.0
- [`#91`](https://github.com/lifion/sqslite/pull/91): Update dependency npm-watch to ^0.7.0
- [`#97`](https://github.com/lifion/sqslite/pull/97): Untag queue
- [`#93`](https://github.com/lifion/sqslite/pull/93): Tag queue function
- [`#90`](https://github.com/lifion/sqslite/pull/90): Update dependency jest to ^26.4.0
- [`#88`](https://github.com/lifion/sqslite/pull/88): Upgrade fastify
- [`#86`](https://github.com/lifion/sqslite/pull/86): Update links
- [`f4dddaa`](https://github.com/lifion/sqslite/commit/f4dddaa4e9eb808686df202c49abcfba3a14bac5): Upgrade dependencies
- [`dd6bc1e`](https://github.com/lifion/sqslite/commit/dd6bc1e4de07a1e498cc52caa1f5674eb6b6ac6b): Update package-lock
- [`f74bbe1`](https://github.com/lifion/sqslite/commit/f74bbe16598b55f8e88f689553adfe5fb618ee97): Add untag queue
- [`486c577`](https://github.com/lifion/sqslite/commit/486c577bfb417c7cd4c237f28bbd9df4de7162ee): Add tag functionality
- [`254bb7e`](https://github.com/lifion/sqslite/commit/254bb7eb4c9e39f4c526d03bc4930f5e9442693d): Upgrade dependencies
- [`8bc0947`](https://github.com/lifion/sqslite/commit/8bc09477cb939d3867a7968854657eed7ea6f2cd): Update package-lock
- [`fb87acb`](https://github.com/lifion/sqslite/commit/fb87acb5eb993f481e151175920d2b2e03d7d35c): Upgrade dependencies
- [`a9e834b`](https://github.com/lifion/sqslite/commit/a9e834b3a57b382b6f1d5f9968b917f82cbcf246): teest
- [`03a29c0`](https://github.com/lifion/sqslite/commit/03a29c0852ef701b77b35e7ceea43391188f73f0): Clean up
- [`a567fea`](https://github.com/lifion/sqslite/commit/a567feac4cc3a6234ffba314a4a7c394d5e835d4): Upgrade dependencies
- [`7b56907`](https://github.com/lifion/sqslite/commit/7b56907f89ddcd79cf796d5f618bf386edc78e76): Try inline rule
- [`1d46a37`](https://github.com/lifion/sqslite/commit/1d46a3758765c5a8838adf74e3213c696e0096c5): try to disable use strict
- [`148c627`](https://github.com/lifion/sqslite/commit/148c6274eea86667a963fc6580dafdacaf8dc116): Test 1
- [`9f4077e`](https://github.com/lifion/sqslite/commit/9f4077ec478ead13e8b9d6a031be2b7704962615): Test
- [`83026f3`](https://github.com/lifion/sqslite/commit/83026f3bbae0f676e768aaa9f6b4f86810352614): Add shebang exception https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/shebang.md
- [`eeef610`](https://github.com/lifion/sqslite/commit/eeef61024016fe2a34ebb969f25a1aa8332e00d9): test
- [`0fe985c`](https://github.com/lifion/sqslite/commit/0fe985c0059752adf2fd3b54bce55091d4dfd02d): Add unix line breaks
- [`5d10ba9`](https://github.com/lifion/sqslite/commit/5d10ba9102d869f75f120a7ade9127f525df49ba): Remove lint rule
- [`9613a21`](https://github.com/lifion/sqslite/commit/9613a21587a6dda25c540c0171012d7a2d0cb715): Remove node 13
- [`1a509bf`](https://github.com/lifion/sqslite/commit/1a509bf013ead442c3dc4c5b0a483c0b74333683): test
- [`5131e80`](https://github.com/lifion/sqslite/commit/5131e80726eae8c97a4e2bec42830a6a1004972b): Test
- [`9457ed0`](https://github.com/lifion/sqslite/commit/9457ed0d903ebf108e6a4a8b27bfd9fc95a42e42): Attempt to remove non unix linebreak
- [`342c872`](https://github.com/lifion/sqslite/commit/342c8721073a32400fd304dc71053a9f8ea4267a): Attempt to fix unix linebreak
- [`875aac9`](https://github.com/lifion/sqslite/commit/875aac90c39092ce4311b21fec8f4cd2dfe6c12c): Fix the linter on windows
- [`ad80612`](https://github.com/lifion/sqslite/commit/ad806128d0a5578d21266020b832d98a4664ed46): Remove semicolon
### v0.1.0 (2020-06-26)

@@ -106,2 +141,3 @@

- [`0bfd9f6`](https://github.com/lifion/sqslite/commit/0bfd9f638aba25870aa253e88df72c2175138fd2): Add "@State" to the queue and messages to keep track of status variables
- [`129e0d0`](https://github.com/lifion/sqslite/commit/129e0d01edf1a206dca7e492da7a995262e1c1a0): Initial commit
- [`8c53dd5`](https://github.com/lifion/sqslite/commit/8c53dd536842d29fc5089bfc07d5d94df53386ec): Refactor action create queue to parse parameters in one function

@@ -163,5 +199,1 @@ - [`42d1a21`](https://github.com/lifion/sqslite/commit/42d1a21cb6eb153ed6820bdab89c0b7084332411): Remove redundant return in receive-message test

- [`e433bd2`](https://github.com/lifion/sqslite/commit/e433bd22c91042298361c0ad739f00b3a89ee914): added TODOs
### v0.0.0 (2020-06-26)
- [`129e0d0`](https://github.com/lifion/sqslite/commit/129e0d01edf1a206dca7e492da7a995262e1c1a0): Initial commit

@@ -9,2 +9,4 @@ 'use strict';

const receiveMessage = require('./actions/receive-message');
const tagQueue = require('./actions/tag-queue');
const untagQueue = require('./actions/untag-queue');

@@ -33,2 +35,6 @@ module.exports = (opts) => {

return receiveMessage(body);
case 'TagQueue':
return tagQueue(body);
case 'UntagQueue':
return untagQueue(body);
default:

@@ -35,0 +41,0 @@ return `Action: ${body.Action} is not implemented`;

@@ -301,2 +301,16 @@ 'use strict';

function tagQueue(QueueUrl, tags) {
const convertedQueue = QueueUrl.replace(/http:\/\/localhost:\d{4}\/queues\//g, '');
const queue = queues.get(convertedQueue);
queue.tags = { ...queue.tags, ...tags };
}
function untagQueue(QueueUrl, removeTags) {
const convertedQueue = QueueUrl.replace(/http:\/\/localhost:\d{4}\/queues\//g, '');
const queue = queues.get(convertedQueue);
removeTags.forEach((tag) => {
if (queue.tags[tag]) delete queue.tags[tag];
});
}
module.exports = {

@@ -308,3 +322,5 @@ clearQueues,

receiveMessage,
sendMessage
sendMessage,
tagQueue,
untagQueue
};

32

package.json
{
"name": "sqslite",
"version": "0.1.0",
"version": "0.2.0",
"description": "Lightweight module for integration testing AWS SQS.",

@@ -18,8 +18,8 @@ "keywords": [],

"type": "git",
"url": "https://github.com/lifion/lifion-template.git"
"url": "https://github.com/lifion/sqslite.git"
},
"bugs": {
"url": "https://github.com/lifion/lifion-template/issues"
"url": "https://github.com/lifion/sqslite/issues"
},
"homepage": "https://github.com/lifion/lifion-template#readme",
"homepage": "https://github.com/lifion/sqslite#readme",
"main": "lib/index.js",

@@ -42,28 +42,28 @@ "bin": "bin/cli.js",

"dedent": "^0.7.0",
"fastify": "^2.15.0",
"fastify-formbody": "^3.2.0",
"md5": "^2.2.1",
"fastify": "^3.2.1",
"fastify-formbody": "^4.0.3",
"md5": "^2.3.0",
"minimist": "^1.2.5",
"superstruct": "^0.10.12",
"uuid": "^8.2.0",
"uuid": "^8.3.0",
"xmlbuilder": "^15.1.1"
},
"devDependencies": {
"@types/node": "^14.0.14",
"auto-changelog": "^2.1.0",
"aws-sdk": "^2.706.0",
"@types/node": "^14.6.0",
"auto-changelog": "^2.2.0",
"aws-sdk": "^2.735.0",
"chalk": "^4.1.0",
"check-engines": "^1.5.0",
"codecov": "^3.7.0",
"eslint": "^7.3.1",
"codecov": "^3.7.2",
"eslint": "^7.7.0",
"eslint-config-lifion": "^1.4.0",
"husky": "^4.2.5",
"jest": "^26.1.0",
"jest": "^26.4.0",
"jest-xml-matcher": "^1.2.0",
"jsdoc-to-markdown": "^6.0.1",
"lint-staged": "^10.2.11",
"npm-watch": "^0.6.0",
"npm-watch": "^0.7.0",
"prettier": "^2.0.5",
"semver": "^7.3.2",
"typescript": "^3.9.5"
"typescript": "^3.9.7"
},

@@ -70,0 +70,0 @@ "husky": {

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