Socket
Socket
Sign inDemoInstall

@wix/blog

Package Overview
Dependencies
Maintainers
16
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/blog - npm Package Compare versions

Comparing version 1.0.138 to 1.0.139

2

build/cjs/index.d.ts

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

export * as tags from './src/blog-v3-tag.public';
export * as categories from './src/blog-v3-category.public';
export * as posts from './src/blog-v3-post.public';
export * as tags from './src/blog-v3-tag.public';

@@ -22,6 +22,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.posts = exports.categories = exports.tags = void 0;
exports.tags = __importStar(require("./src/blog-v3-tag.public"));
exports.tags = exports.posts = exports.categories = void 0;
exports.categories = __importStar(require("./src/blog-v3-category.public"));
exports.posts = __importStar(require("./src/blog-v3-post.public"));
exports.tags = __importStar(require("./src/blog-v3-tag.public"));
//# sourceMappingURL=index.js.map

@@ -8,2 +8,2 @@ import { HttpClient } from '@wix/sdk-types';

export { Field, SortOrder } from './blog-v3-category.universal';
export { Category, CoverMedia, CoverMediaMediaOneOf, SeoSchema, Tag, Settings, InitialCategoriesCopied, CreateCategoryRequest, CreateCategoryResponse, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkCategoryResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateCategoriesRequest, BulkUpdateCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, GetCategoryRequest, GetCategoryResponse, GetCategoryBySlugRequest, GetCategoryBySlugResponse, ListCategoriesRequest, BlogPaging, ListCategoriesResponse, MetaData, QueryCategoriesRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category.universal';
export { Category, CoverMedia, CoverMediaMediaOneOf, SeoSchema, Tag, Settings, InitialCategoriesCopied, CreateCategoryRequest, CreateCategoryResponse, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkCategoryResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateCategoriesRequest, MaskedCategory, BulkUpdateCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, GetCategoryRequest, GetCategoryResponse, GetCategoryBySlugRequest, GetCategoryBySlugResponse, ListCategoriesRequest, BlogPaging, ListCategoriesResponse, MetaData, QueryCategoriesRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category.universal';

@@ -262,3 +262,3 @@ export interface Category {

/** Categories to update. */
categories?: Category[];
categories?: MaskedCategory[];
/** Whether to return the full created category entities in the response. */

@@ -269,5 +269,9 @@ returnFullEntity?: boolean;

* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
*/
fieldsets?: Field[];
}
export interface MaskedCategory {
/** Category */
category?: Category;
/** Field mask of fields to update. */

@@ -274,0 +278,0 @@ fieldMask?: string[];

@@ -215,3 +215,3 @@ export declare const __debug: {

/** Categories to update. */
categories?: Category[];
categories?: MaskedCategory[];
/** Whether to return the full created category entities in the response. */

@@ -222,5 +222,9 @@ returnFullEntity?: boolean;

* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
*/
fieldsets?: Field[];
}
export interface MaskedCategory {
/** Category */
category?: Category;
/** Field mask of fields to update. */

@@ -227,0 +231,0 @@ fieldMask?: string[];

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

function getTagByLabel(label, options) {
var _a, _b, _c;
return __awaiter(this, arguments, void 0, function* () {

@@ -92,3 +93,3 @@ const requestTransformation = {

// @ts-ignore
const httpClient = arguments[2].httpClient;
const { httpClient, sideEffects } = arguments[2];
const { toAmbassadorRequest } = velo_1.serializer({

@@ -115,5 +116,7 @@ rootSchema: _getTagByLabelRequest,

__log(`"GetTagByLabel" sending request with: ${__inspect(reqOpts)}`);
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
try {
const { data } = yield httpClient.request(reqOpts);
return fromJSON(data);
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 fromJSON(result.data);
}

@@ -125,2 +128,3 @@ catch (err) {

]);
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw transformedError;

@@ -142,2 +146,3 @@ }

function getTag(tagId, options) {
var _a, _b, _c;
return __awaiter(this, arguments, void 0, function* () {

@@ -151,3 +156,3 @@ const requestTransformation = {

// @ts-ignore
const httpClient = arguments[2].httpClient;
const { httpClient, sideEffects } = arguments[2];
const { toAmbassadorRequest } = velo_1.serializer({

@@ -174,5 +179,7 @@ rootSchema: _getTagRequest,

__log(`"GetTag" sending request with: ${__inspect(reqOpts)}`);
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
try {
const { data } = yield httpClient.request(reqOpts);
return fromJSON(data);
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 fromJSON(result.data);
}

@@ -184,2 +191,3 @@ catch (err) {

]);
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw transformedError;

@@ -203,2 +211,3 @@ }

function getTagBySlug(slug, options) {
var _a, _b, _c;
return __awaiter(this, arguments, void 0, function* () {

@@ -212,3 +221,3 @@ const requestTransformation = {

// @ts-ignore
const httpClient = arguments[2].httpClient;
const { httpClient, sideEffects } = arguments[2];
const { toAmbassadorRequest } = velo_1.serializer({

@@ -235,5 +244,7 @@ rootSchema: _getTagBySlugRequest,

__log(`"GetTagBySlug" sending request with: ${__inspect(reqOpts)}`);
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
try {
const { data } = yield httpClient.request(reqOpts);
return fromJSON(data);
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 fromJSON(result.data);
}

@@ -245,2 +256,3 @@ catch (err) {

]);
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw transformedError;

@@ -274,3 +286,3 @@ }

// @ts-ignore
const httpClient = arguments[1].httpClient;
const { httpClient, sideEffects } = arguments[1];
const { toAmbassadorRequest } = velo_1.serializer({

@@ -295,6 +307,16 @@ rootSchema: _queryTagsRequest,

return motion_edm_autogen_query_wrapper_1.wrapWithQueryBuilder({
func: (payload) => {
func: (payload) => __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const reqOpts = ambassadorWixBlogV3Tag.queryTags(Object.assign(Object.assign({}, payload), (options !== null && options !== void 0 ? options : {})));
return httpClient.request(reqOpts);
},
(_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 result;
}
catch (err) {
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw err;
}
}),
requestTransformer: (...args) => toAmbassadorRequest(args),

@@ -301,0 +323,0 @@ responseTransformer: ({ data }) => fromJSON(data),

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

export * as tags from './src/blog-v3-tag.public';
export * as categories from './src/blog-v3-category.public';
export * as posts from './src/blog-v3-post.public';
export * as tags from './src/blog-v3-tag.public';

@@ -1,4 +0,4 @@

export * as tags from './src/blog-v3-tag.public';
export * as categories from './src/blog-v3-category.public';
export * as posts from './src/blog-v3-post.public';
export * as tags from './src/blog-v3-tag.public';
//# sourceMappingURL=index.js.map

@@ -8,2 +8,2 @@ import { HttpClient } from '@wix/sdk-types';

export { Field, SortOrder } from './blog-v3-category.universal';
export { Category, CoverMedia, CoverMediaMediaOneOf, SeoSchema, Tag, Settings, InitialCategoriesCopied, CreateCategoryRequest, CreateCategoryResponse, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkCategoryResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateCategoriesRequest, BulkUpdateCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, GetCategoryRequest, GetCategoryResponse, GetCategoryBySlugRequest, GetCategoryBySlugResponse, ListCategoriesRequest, BlogPaging, ListCategoriesResponse, MetaData, QueryCategoriesRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category.universal';
export { Category, CoverMedia, CoverMediaMediaOneOf, SeoSchema, Tag, Settings, InitialCategoriesCopied, CreateCategoryRequest, CreateCategoryResponse, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkCategoryResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateCategoriesRequest, MaskedCategory, BulkUpdateCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, GetCategoryRequest, GetCategoryResponse, GetCategoryBySlugRequest, GetCategoryBySlugResponse, ListCategoriesRequest, BlogPaging, ListCategoriesResponse, MetaData, QueryCategoriesRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category.universal';

@@ -262,3 +262,3 @@ export interface Category {

/** Categories to update. */
categories?: Category[];
categories?: MaskedCategory[];
/** Whether to return the full created category entities in the response. */

@@ -269,5 +269,9 @@ returnFullEntity?: boolean;

* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
*/
fieldsets?: Field[];
}
export interface MaskedCategory {
/** Category */
category?: Category;
/** Field mask of fields to update. */

@@ -274,0 +278,0 @@ fieldMask?: string[];

@@ -215,3 +215,3 @@ export declare const __debug: {

/** Categories to update. */
categories?: Category[];
categories?: MaskedCategory[];
/** Whether to return the full created category entities in the response. */

@@ -222,5 +222,9 @@ returnFullEntity?: boolean;

* Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
* For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
*/
fieldsets?: Field[];
}
export interface MaskedCategory {
/** Category */
category?: Category;
/** Field mask of fields to update. */

@@ -227,0 +231,0 @@ fieldMask?: string[];

@@ -60,2 +60,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

export function getTagByLabel(label, options) {
var _a, _b, _c;
return __awaiter(this, arguments, void 0, function* () {

@@ -70,3 +71,3 @@ const requestTransformation = {

// @ts-ignore
const httpClient = arguments[2].httpClient;
const { httpClient, sideEffects } = arguments[2];
const { toAmbassadorRequest } = serializer({

@@ -93,5 +94,7 @@ rootSchema: _getTagByLabelRequest,

__log(`"GetTagByLabel" sending request with: ${__inspect(reqOpts)}`);
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
try {
const { data } = yield httpClient.request(reqOpts);
return fromJSON(data);
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 fromJSON(result.data);
}

@@ -103,2 +106,3 @@ catch (err) {

]);
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw transformedError;

@@ -119,2 +123,3 @@ }

export function getTag(tagId, options) {
var _a, _b, _c;
return __awaiter(this, arguments, void 0, function* () {

@@ -128,3 +133,3 @@ const requestTransformation = {

// @ts-ignore
const httpClient = arguments[2].httpClient;
const { httpClient, sideEffects } = arguments[2];
const { toAmbassadorRequest } = serializer({

@@ -151,5 +156,7 @@ rootSchema: _getTagRequest,

__log(`"GetTag" sending request with: ${__inspect(reqOpts)}`);
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
try {
const { data } = yield httpClient.request(reqOpts);
return fromJSON(data);
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 fromJSON(result.data);
}

@@ -161,2 +168,3 @@ catch (err) {

]);
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw transformedError;

@@ -179,2 +187,3 @@ }

export function getTagBySlug(slug, options) {
var _a, _b, _c;
return __awaiter(this, arguments, void 0, function* () {

@@ -188,3 +197,3 @@ const requestTransformation = {

// @ts-ignore
const httpClient = arguments[2].httpClient;
const { httpClient, sideEffects } = arguments[2];
const { toAmbassadorRequest } = serializer({

@@ -211,5 +220,7 @@ rootSchema: _getTagBySlugRequest,

__log(`"GetTagBySlug" sending request with: ${__inspect(reqOpts)}`);
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
try {
const { data } = yield httpClient.request(reqOpts);
return fromJSON(data);
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 fromJSON(result.data);
}

@@ -221,2 +232,3 @@ catch (err) {

]);
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw transformedError;

@@ -249,3 +261,3 @@ }

// @ts-ignore
const httpClient = arguments[1].httpClient;
const { httpClient, sideEffects } = arguments[1];
const { toAmbassadorRequest } = serializer({

@@ -270,6 +282,16 @@ rootSchema: _queryTagsRequest,

return wrapWithQueryBuilder({
func: (payload) => {
func: (payload) => __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const reqOpts = ambassadorWixBlogV3Tag.queryTags(Object.assign(Object.assign({}, payload), (options !== null && options !== void 0 ? options : {})));
return httpClient.request(reqOpts);
},
(_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 result;
}
catch (err) {
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
throw err;
}
}),
requestTransformer: (...args) => toAmbassadorRequest(args),

@@ -276,0 +298,0 @@ responseTransformer: ({ data }) => fromJSON(data),

{
"name": "@wix/blog",
"version": "1.0.138",
"version": "1.0.139",
"publishConfig": {

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

},
"falconPackageHash": "4f56ef59a4b02bde30a749e203ca10644a2d3d5162c51af22d9210e3"
"falconPackageHash": "85c1ad70f4713f5c7f61119da4ea7c5fe15707d1181fafbd022d1d66"
}

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

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