New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

insomnia-plugin-request

Package Overview
Dependencies
Maintainers
3
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insomnia-plugin-request - npm Package Compare versions

Comparing version 2.2.8 to 2.2.9

33

__tests__/index.test.js

@@ -89,2 +89,35 @@ const { jarFromCookies, cookiesFromJar } = require('insomnia-cookies');

});
describe('RequestExtension id', () => {
it('should get id', async () => {
const requests = [
{
_id: 'req_1',
parameters: [{ name: 'foo', value: '{{ foo }}' }],
url: 'https://insomnia.rest/foo/bar',
},
];
const context = _getTestContext([{ _id: 'wrk_1' }], requests);
const result = await tag.run(context, 'id');
expect(result).toBe('req_1');
});
});
describe('RequestExtension name', () => {
it('should get name', async () => {
const requests = [
{
_id: 'req_1',
name: 'Foo',
parameters: [{ name: 'foo', value: '{{ foo }}' }],
url: 'https://insomnia.rest/foo/bar',
},
];
const context = _getTestContext([{ _id: 'wrk_1' }], requests);
const result = await tag.run(context, 'name');
expect(result).toBe('Foo');
});
});
});

@@ -91,0 +124,0 @@

@@ -53,2 +53,7 @@ const {

},
{
displayName: 'ID',
value: 'id',
description: 'ID of request',
},
],

@@ -161,2 +166,4 @@ },

return request.name;
case 'id':
return request._id;
case 'folder':

@@ -163,0 +170,0 @@ const ancestors = await context.util.models.request.getAncestors(request);

8

package.json
{
"name": "insomnia-plugin-request",
"version": "2.2.8",
"version": "2.2.9",
"author": "Gregory Schier <greg.schier@konghq.com>",

@@ -21,6 +21,6 @@ "description": "Insomnia request template tag",

"dependencies": {
"insomnia-cookies": "^2.1.4",
"insomnia-url": "^2.2.2"
"insomnia-cookies": "^2.2.9",
"insomnia-url": "^2.2.9"
},
"gitHead": "62593e9282886b44dbc7b2f9db475903977f7423"
"gitHead": "7076669f542c4c4367b1b48f55f85d933cebe67c"
}
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