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

@wix/data-backend-public-sdk-poc_data

Package Overview
Dependencies
Maintainers
26
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/data-backend-public-sdk-poc_data - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

3

build/cjs/src/data-v1-data-service-data.context.js

@@ -6,3 +6,2 @@ "use strict";

const query = (...args) => {
var _a;
const context =

@@ -19,3 +18,3 @@ // @ts-expect-error

return context
.initWixModules(data_v1_data_service_data_public_1.query, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.initWixModules(data_v1_data_service_data_public_1.query, args[1]?.supressAuth ? true : false)
.apply(undefined, args);

@@ -22,0 +21,0 @@ };

@@ -552,2 +552,3 @@ export interface Item {

* @permissionScopeId SCOPE.DC-DATA.READ
* @applicableIdentity APP
*/

@@ -554,0 +555,0 @@ export declare function query(options?: QueryOptions): Promise<QueryResponse & QueryResponseNonNullableFields>;

@@ -25,11 +25,2 @@ "use strict";

};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -67,39 +58,36 @@ exports.query = exports.Order = exports.SortOrder = exports.Segment = void 0;

* @permissionScopeId SCOPE.DC-DATA.READ
* @applicableIdentity APP
*/
function query(options) {
var arguments_1 = arguments;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
// @ts-ignore
const { httpClient, sideEffects } = arguments_1[1];
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
dataQuery: options === null || options === void 0 ? void 0 : options.dataQuery,
omitTotalCount: options === null || options === void 0 ? void 0 : options.omitTotalCount,
includeReferencedItems: options === null || options === void 0 ? void 0 : options.includeReferencedItems,
dataCollectionId: options === null || options === void 0 ? void 0 : options.dataCollectionId,
});
const reqOpts = ambassadorWixDataV1DataService.query(payload);
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
try {
const result = yield httpClient.request(reqOpts);
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
}
catch (err) {
const transformedError = (0, transform_error_1.transformError)(err, {
spreadPathsToArguments: {},
explicitPathsToArguments: {
dataQuery: '$[0].dataQuery',
omitTotalCount: '$[0].omitTotalCount',
includeReferencedItems: '$[0].includeReferencedItems',
dataCollectionId: '$[0].dataCollectionId',
},
singleArgumentUnchanged: false,
}, ['options']);
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw transformedError;
}
async function query(options) {
// @ts-ignore
const { httpClient, sideEffects } = arguments[1];
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
dataQuery: options?.dataQuery,
omitTotalCount: options?.omitTotalCount,
includeReferencedItems: options?.includeReferencedItems,
dataCollectionId: options?.dataCollectionId,
});
const reqOpts = ambassadorWixDataV1DataService.query(payload);
sideEffects?.onSiteCall?.();
try {
const result = await httpClient.request(reqOpts);
sideEffects?.onSuccess?.(result);
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
}
catch (err) {
const transformedError = (0, transform_error_1.transformError)(err, {
spreadPathsToArguments: {},
explicitPathsToArguments: {
dataQuery: '$[0].dataQuery',
omitTotalCount: '$[0].omitTotalCount',
includeReferencedItems: '$[0].includeReferencedItems',
dataCollectionId: '$[0].dataCollectionId',
},
singleArgumentUnchanged: false,
}, ['options']);
sideEffects?.onError?.(err);
throw transformedError;
}
}
exports.query = query;
//# sourceMappingURL=data-v1-data-service-data.universal.js.map
import { query as publicQuery } from './data-v1-data-service-data.public';
export const query = (...args) => {
var _a;
const context =

@@ -15,5 +14,5 @@ // @ts-expect-error

return context
.initWixModules(publicQuery, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.initWixModules(publicQuery, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
//# sourceMappingURL=data-v1-data-service-data.context.js.map

@@ -552,2 +552,3 @@ export interface Item {

* @permissionScopeId SCOPE.DC-DATA.READ
* @applicableIdentity APP
*/

@@ -554,0 +555,0 @@ export declare function query(options?: QueryOptions): Promise<QueryResponse & QueryResponseNonNullableFields>;

@@ -1,10 +0,1 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';

@@ -40,38 +31,35 @@ import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';

* @permissionScopeId SCOPE.DC-DATA.READ
* @applicableIdentity APP
*/
export function query(options) {
var arguments_1 = arguments;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
// @ts-ignore
const { httpClient, sideEffects } = arguments_1[1];
const payload = renameKeysFromSDKRequestToRESTRequest({
dataQuery: options === null || options === void 0 ? void 0 : options.dataQuery,
omitTotalCount: options === null || options === void 0 ? void 0 : options.omitTotalCount,
includeReferencedItems: options === null || options === void 0 ? void 0 : options.includeReferencedItems,
dataCollectionId: options === null || options === void 0 ? void 0 : options.dataCollectionId,
});
const reqOpts = ambassadorWixDataV1DataService.query(payload);
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
try {
const result = yield httpClient.request(reqOpts);
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
return renameKeysFromRESTResponseToSDKResponse(result.data);
}
catch (err) {
const transformedError = sdkTransformError(err, {
spreadPathsToArguments: {},
explicitPathsToArguments: {
dataQuery: '$[0].dataQuery',
omitTotalCount: '$[0].omitTotalCount',
includeReferencedItems: '$[0].includeReferencedItems',
dataCollectionId: '$[0].dataCollectionId',
},
singleArgumentUnchanged: false,
}, ['options']);
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw transformedError;
}
export async function query(options) {
// @ts-ignore
const { httpClient, sideEffects } = arguments[1];
const payload = renameKeysFromSDKRequestToRESTRequest({
dataQuery: options?.dataQuery,
omitTotalCount: options?.omitTotalCount,
includeReferencedItems: options?.includeReferencedItems,
dataCollectionId: options?.dataCollectionId,
});
const reqOpts = ambassadorWixDataV1DataService.query(payload);
sideEffects?.onSiteCall?.();
try {
const result = await httpClient.request(reqOpts);
sideEffects?.onSuccess?.(result);
return renameKeysFromRESTResponseToSDKResponse(result.data);
}
catch (err) {
const transformedError = sdkTransformError(err, {
spreadPathsToArguments: {},
explicitPathsToArguments: {
dataQuery: '$[0].dataQuery',
omitTotalCount: '$[0].omitTotalCount',
includeReferencedItems: '$[0].includeReferencedItems',
dataCollectionId: '$[0].dataCollectionId',
},
singleArgumentUnchanged: false,
}, ['options']);
sideEffects?.onError?.(err);
throw transformedError;
}
}
//# sourceMappingURL=data-v1-data-service-data.universal.js.map
{
"name": "@wix/data-backend-public-sdk-poc_data",
"version": "1.0.10",
"version": "1.0.11",
"publishConfig": {

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

"@wix/sdk-runtime": "^0.2.10",
"@wix/sdk-types": "^1.5.11"
"@wix/sdk-types": "^1.6.0"
},

@@ -43,3 +43,3 @@ "devDependencies": {

},
"falconPackageHash": "f486f4d1f8d45745a79ce587a3452f5e2983cd75eae211871fe034ae"
"falconPackageHash": "253d8dfbb7b40e609d916cb0fe8cb616b6a459130bc4eb64c7a7fe2d"
}

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