Socket
Socket
Sign inDemoInstall

@wix/captcha_captcha

Package Overview
Dependencies
Maintainers
26
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/captcha_captcha - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

4

build/cjs/src/captcharator-v1-captcha-entity-captcha.context.d.ts

@@ -1,1 +0,3 @@

import './captcharator-v1-captcha-entity-captcha.public';
import { authorize as publicAuthorize } from './captcharator-v1-captcha-entity-captcha.public';
import { BuildRESTFunction } from '@wix/sdk-types';
export declare const authorize: BuildRESTFunction<typeof publicAuthorize>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("./captcharator-v1-captcha-entity-captcha.public");
exports.authorize = void 0;
const captcharator_v1_captcha_entity_captcha_public_1 = require("./captcharator-v1-captcha-entity-captcha.public");
const authorize = (...args) => {
var _a;
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(captcharator_v1_captcha_entity_captcha_public_1.authorize, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.authorize = authorize;
//# sourceMappingURL=captcharator-v1-captcha-entity-captcha.context.js.map

@@ -36,9 +36,5 @@ "use strict";

exports.authorize = void 0;
const velo_1 = require("@wix/metro-runtime/velo");
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
const ambassadorWixCaptcharatorV1CaptchaEntity = __importStar(require("./captcharator-v1-captcha-entity-captcha.http"));
const _toVeloEntity = '$';
const _fromVeloEntity = '$';
const _captchaRequest = {};
const _captchaResponse = {};
/**

@@ -73,25 +69,5 @@ * Authorizes the CAPTCHA token.

var _a, _b, _c;
const requestTransformation = { token: '$[0]' };
const responseTransformation = '$';
// @ts-ignore
const { httpClient, sideEffects } = arguments_1[1];
const { toAmbassadorRequest } = (0, velo_1.serializer)({
rootSchema: _captchaRequest,
depSchemas: {},
fqdnTransformation: {
paths: [],
transformation: _fromVeloEntity,
},
customTransformation: requestTransformation,
});
const { fromJSON } = (0, velo_1.serializer)({
rootSchema: _captchaResponse,
depSchemas: {},
fqdnTransformation: {
paths: [],
transformation: _toVeloEntity,
},
customTransformation: responseTransformation,
});
const payload = toAmbassadorRequest([token]);
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ token: token });
const reqOpts = ambassadorWixCaptcharatorV1CaptchaEntity.authorize(payload);

@@ -102,3 +78,3 @@ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);

(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
return fromJSON(result.data);
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
}

@@ -105,0 +81,0 @@ catch (err) {

@@ -1,1 +0,3 @@

import './captcharator-v1-captcha-entity-captcha.public';
import { authorize as publicAuthorize } from './captcharator-v1-captcha-entity-captcha.public';
import { BuildRESTFunction } from '@wix/sdk-types';
export declare const authorize: BuildRESTFunction<typeof publicAuthorize>;

@@ -1,2 +0,18 @@

import './captcharator-v1-captcha-entity-captcha.public';
import { authorize as publicAuthorize } from './captcharator-v1-captcha-entity-captcha.public';
export const authorize = (...args) => {
var _a;
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(publicAuthorize, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
//# sourceMappingURL=captcharator-v1-captcha-entity-captcha.context.js.map

@@ -10,9 +10,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
import { serializer } from '@wix/metro-runtime/velo';
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
import * as ambassadorWixCaptcharatorV1CaptchaEntity from './captcharator-v1-captcha-entity-captcha.http';
const _toVeloEntity = '$';
const _fromVeloEntity = '$';
const _captchaRequest = {};
const _captchaResponse = {};
/**

@@ -47,25 +43,5 @@ * Authorizes the CAPTCHA token.

var _a, _b, _c;
const requestTransformation = { token: '$[0]' };
const responseTransformation = '$';
// @ts-ignore
const { httpClient, sideEffects } = arguments_1[1];
const { toAmbassadorRequest } = serializer({
rootSchema: _captchaRequest,
depSchemas: {},
fqdnTransformation: {
paths: [],
transformation: _fromVeloEntity,
},
customTransformation: requestTransformation,
});
const { fromJSON } = serializer({
rootSchema: _captchaResponse,
depSchemas: {},
fqdnTransformation: {
paths: [],
transformation: _toVeloEntity,
},
customTransformation: responseTransformation,
});
const payload = toAmbassadorRequest([token]);
const payload = renameKeysFromSDKRequestToRESTRequest({ token: token });
const reqOpts = ambassadorWixCaptcharatorV1CaptchaEntity.authorize(payload);

@@ -76,3 +52,3 @@ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);

(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
return fromJSON(result.data);
return renameKeysFromRESTResponseToSDKResponse(result.data);
}

@@ -79,0 +55,0 @@ catch (err) {

{
"name": "@wix/captcha_captcha",
"version": "1.0.7",
"version": "1.0.8",
"publishConfig": {

@@ -21,3 +21,3 @@ "registry": "https://registry.npmjs.org/",

"@wix/motion-edm-autogen-query-wrapper": "^1.0.37",
"@wix/sdk-runtime": "^0.2.7",
"@wix/sdk-runtime": "^0.2.10",
"@wix/sdk-types": "^1.5.11"

@@ -43,3 +43,3 @@ },

},
"falconPackageHash": "4230f943ec808a02bb2c305f800f3f8e389dd6819aeef1e30ba822ef"
"falconPackageHash": "5c476257130363e30e7b290b6c8a857f9a0644d0932d43265171f633"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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