Socket
Socket
Sign inDemoInstall

egg-mock

Package Overview
Dependencies
33
Maintainers
3
Versions
125
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

28

app/extend/application.js

@@ -226,2 +226,30 @@ 'use strict';

/**
* mock csrf
* @method App#mockCsrf
* @return {App} this
* @sice 1.11
*/
mockCsrf() {
mm(this.context, 'assertCSRF', function() {});
return this;
},
/**
* mock ctoken
* @method App#mockCtoken
* @return {App} this
* @sice 2.5.0
*/
mockCtoken() {
const ctoken = 'mock-ctoken';
this.mockCookies({
ctoken: ctoken,
});
this.mockHeaders({
'x-csrf-token': ctoken,
});
return this;
},
/**
* mock urllib

@@ -228,0 +256,0 @@ * @method App#mockUrllib

2

package.json
{
"name": "egg-mock",
"version": "0.0.2",
"version": "0.0.3",
"eggPlugin": {

@@ -5,0 +5,0 @@ "name": "egg-mock"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc