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

@wix/blog_blog-importer

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/blog_blog-importer - npm Package Compare versions

Comparing version 1.0.16 to 1.0.17

4

build/cjs/src/blog-v1-wordpress-import-blog-importer.http.js

@@ -7,3 +7,3 @@ "use strict";

const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
const metro_runtime_2 = require("@wix/metro-runtime");
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
function resolveComWixBlogWordpressImportServiceUrl(opts) {

@@ -24,3 +24,3 @@ const domainToMappings = {

};
return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
return (0, rest_modules_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
}

@@ -27,0 +27,0 @@ const PACKAGE_NAME = '@wix/blog_blog-importer';

import { toURLSearchParams } from '@wix/metro-runtime';
import { transformSDKBytesToRESTBytes } from '@wix/sdk-runtime/transformations/bytes';
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
import { resolveUrl } from '@wix/metro-runtime';
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
function resolveComWixBlogWordpressImportServiceUrl(opts) {

@@ -6,0 +6,0 @@ const domainToMappings = {

{
"name": "@wix/blog_blog-importer",
"version": "1.0.16",
"version": "1.0.17",
"publishConfig": {

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

"dependencies": {
"@wix/metro-runtime": "^1.1792.0",
"@wix/motion-edm-autogen-query-wrapper": "^1.0.37",
"@wix/sdk-runtime": "^0.3.14",
"@wix/sdk-types": "^1.12.3"
"@wix/sdk-runtime": "^0.3.22",
"@wix/sdk-types": "^1.12.4"
},

@@ -49,3 +47,3 @@ "devDependencies": {

},
"falconPackageHash": "2d36fae259960e5590dfbe6a061580d4d8abf2688f9bfa73aab8f7e6"
"falconPackageHash": "9be650aa104e7acd756e1e725dd40b7bdaecb6b31b203b5b8879a249"
}

@@ -16,2 +16,6 @@ type HostModule<T, H extends Host> = {

/**
* Optional name of the environment, use for logging
*/
name?: string;
/**
* Optional bast url to use for API requests, for example `www.wixapis.com`

@@ -276,2 +280,68 @@ */

/**
Returns a boolean for whether the given type is `never`.
@link https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919
@link https://stackoverflow.com/a/53984913/10292952
@link https://www.zhenghao.io/posts/ts-never
Useful in type utilities, such as checking if something does not occur.
@example
```
import type {IsNever, And} from 'type-fest';
// https://github.com/andnp/SimplyTyped/blob/master/src/types/strings.ts
type AreStringsEqual<A extends string, B extends string> =
And<
IsNever<Exclude<A, B>> extends true ? true : false,
IsNever<Exclude<B, A>> extends true ? true : false
>;
type EndIfEqual<I extends string, O extends string> =
AreStringsEqual<I, O> extends true
? never
: void;
function endIfEqual<I extends string, O extends string>(input: I, output: O): EndIfEqual<I, O> {
if (input === output) {
process.exit(0);
}
}
endIfEqual('abc', 'abc');
//=> never
endIfEqual('abc', '123');
//=> void
```
@category Type Guard
@category Utilities
*/
type IsNever<T> = [T] extends [never] ? true : false;
/**
An if-else-like type that resolves depending on whether the given type is `never`.
@see {@link IsNever}
@example
```
import type {IfNever} from 'type-fest';
type ShouldBeTrue = IfNever<never>;
//=> true
type ShouldBeBar = IfNever<'not never', 'foo', 'bar'>;
//=> 'bar'
```
@category Type Guard
@category Utilities
*/
type IfNever<T, TypeIfNever = true, TypeIfNotNever = false> = (
IsNever<T> extends true ? TypeIfNever : TypeIfNotNever
);
/**
Extract the keys from a type where the value type of the key extends the given `Condition`.

@@ -308,17 +378,15 @@

*/
type ConditionalKeys<Base, Condition> = NonNullable<
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
type ConditionalKeys<Base, Condition> =
{
// Map through all the keys of the given base type.
[Key in keyof Base]:
[Key in keyof Base]-?:
// Pick only keys with types extending the given `Condition` type.
Base[Key] extends Condition
// Retain this key since the condition passes.
? Key
// Retain this key
// If the value for the key extends never, only include it if `Condition` also extends never
? IfNever<Base[Key], IfNever<Condition, Key, never>, Key>
// Discard this key since the condition fails.
: never;
// Convert the produced object into a union type of the keys which passed the conditional test.
}[keyof Base]
>;
}[keyof Base];

@@ -325,0 +393,0 @@ /**

@@ -16,2 +16,6 @@ type HostModule<T, H extends Host> = {

/**
* Optional name of the environment, use for logging
*/
name?: string;
/**
* Optional bast url to use for API requests, for example `www.wixapis.com`

@@ -276,2 +280,68 @@ */

/**
Returns a boolean for whether the given type is `never`.
@link https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919
@link https://stackoverflow.com/a/53984913/10292952
@link https://www.zhenghao.io/posts/ts-never
Useful in type utilities, such as checking if something does not occur.
@example
```
import type {IsNever, And} from 'type-fest';
// https://github.com/andnp/SimplyTyped/blob/master/src/types/strings.ts
type AreStringsEqual<A extends string, B extends string> =
And<
IsNever<Exclude<A, B>> extends true ? true : false,
IsNever<Exclude<B, A>> extends true ? true : false
>;
type EndIfEqual<I extends string, O extends string> =
AreStringsEqual<I, O> extends true
? never
: void;
function endIfEqual<I extends string, O extends string>(input: I, output: O): EndIfEqual<I, O> {
if (input === output) {
process.exit(0);
}
}
endIfEqual('abc', 'abc');
//=> never
endIfEqual('abc', '123');
//=> void
```
@category Type Guard
@category Utilities
*/
type IsNever<T> = [T] extends [never] ? true : false;
/**
An if-else-like type that resolves depending on whether the given type is `never`.
@see {@link IsNever}
@example
```
import type {IfNever} from 'type-fest';
type ShouldBeTrue = IfNever<never>;
//=> true
type ShouldBeBar = IfNever<'not never', 'foo', 'bar'>;
//=> 'bar'
```
@category Type Guard
@category Utilities
*/
type IfNever<T, TypeIfNever = true, TypeIfNotNever = false> = (
IsNever<T> extends true ? TypeIfNever : TypeIfNotNever
);
/**
Extract the keys from a type where the value type of the key extends the given `Condition`.

@@ -308,17 +378,15 @@

*/
type ConditionalKeys<Base, Condition> = NonNullable<
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
type ConditionalKeys<Base, Condition> =
{
// Map through all the keys of the given base type.
[Key in keyof Base]:
[Key in keyof Base]-?:
// Pick only keys with types extending the given `Condition` type.
Base[Key] extends Condition
// Retain this key since the condition passes.
? Key
// Retain this key
// If the value for the key extends never, only include it if `Condition` also extends never
? IfNever<Base[Key], IfNever<Condition, Key, never>, Key>
// Discard this key since the condition fails.
: never;
// Convert the produced object into a union type of the keys which passed the conditional test.
}[keyof Base]
>;
}[keyof Base];

@@ -325,0 +393,0 @@ /**

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