@wix/blog_blog-importer
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -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
163977
2
3324
- Removed@wix/metro-runtime@^1.1792.0
- Removed@babel/runtime@7.26.0(transitive)
- Removed@rushstack/eslint-patch@1.10.4(transitive)
- Removed@wix/filter-builder@1.0.93(transitive)
- Removed@wix/metro-public-utils@1.0.36(transitive)
- Removed@wix/metro-runtime@1.1880.0(transitive)
- Removed@wix/motion-edm-autogen-common@1.51.0(transitive)
- Removed@wix/motion-edm-autogen-p13n@1.0.88(transitive)
- Removed@wix/motion-edm-autogen-query-wrapper@1.0.124(transitive)
- Removed@wix/motion-edm-autogen-transformations@1.61.0(transitive)
- Removed@wix/motion-edm-autogen-transformations-core@1.55.0(transitive)
- Removed@wix/motion-edm-autogen-types@1.0.39(transitive)
- Removedargparse@2.0.1(transitive)
- Removedconstant-case@3.0.4(transitive)
- Removeddeep-for-each@3.0.0(transitive)
- Removedhttp-status-codes@2.3.0(transitive)
- Removedjs-base64@3.7.7(transitive)
- Removedjs-yaml@4.1.0(transitive)
- Removedjsonpath-plus@5.1.0(transitive)
- Removedkind-of@5.1.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash.isplainobject@4.0.6(transitive)
- Removedlong@4.0.0(transitive)
- Removedlower-case@2.0.2(transitive)
- Removedno-case@3.0.4(transitive)
- Removedquerystring@0.2.1(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedtslib@2.8.1(transitive)
- Removedupper-case@2.0.2(transitive)
Updated@wix/sdk-runtime@^0.3.22
Updated@wix/sdk-types@^1.12.4