common-types
Advanced tools
Comparing version 1.21.6 to 1.21.7
@@ -7,1 +7,5 @@ export declare type sql = string; | ||
export declare type TypeSubtype = `${string}/${string}`; | ||
/** | ||
* A type guard to check that a string is of the type `TypeSubtype` | ||
*/ | ||
export declare function isTypeSubtype(str: string): str is TypeSubtype; |
@@ -344,2 +344,10 @@ 'use strict'; | ||
/** | ||
* A type guard to check that a string is of the type `TypeSubtype` | ||
*/ | ||
function isTypeSubtype(str) { | ||
const parts = str.split("/"); | ||
return parts.length === 2; | ||
} | ||
const AWS_REGIONS = [ | ||
@@ -463,4 +471,5 @@ "us-east-1", | ||
exports.isServerlessFunctionImage = isServerlessFunctionImage; | ||
exports.isTypeSubtype = isTypeSubtype; | ||
exports.parseStack = parseStack; | ||
exports.wait = wait; | ||
//# sourceMappingURL=index.js.map |
@@ -7,1 +7,5 @@ export declare type sql = string; | ||
export declare type TypeSubtype = `${string}/${string}`; | ||
/** | ||
* A type guard to check that a string is of the type `TypeSubtype` | ||
*/ | ||
export declare function isTypeSubtype(str: string): str is TypeSubtype; |
@@ -340,2 +340,10 @@ /** | ||
/** | ||
* A type guard to check that a string is of the type `TypeSubtype` | ||
*/ | ||
function isTypeSubtype(str) { | ||
const parts = str.split("/"); | ||
return parts.length === 2; | ||
} | ||
const AWS_REGIONS = [ | ||
@@ -451,3 +459,3 @@ "us-east-1", | ||
export { AWS_REGIONS, HttpStatusCodes, LambdaEventParser, StepFunctionMissingDataTreatment, createBindDeploymentConfig, getBodyFromPossibleLambdaProxyRequest, isLambdaProxyRequest, isProxyRequestContextV2, isServerlessFunctionHandler, isServerlessFunctionImage, parseStack, wait }; | ||
export { AWS_REGIONS, HttpStatusCodes, LambdaEventParser, StepFunctionMissingDataTreatment, createBindDeploymentConfig, getBodyFromPossibleLambdaProxyRequest, isLambdaProxyRequest, isProxyRequestContextV2, isServerlessFunctionHandler, isServerlessFunctionImage, isTypeSubtype, parseStack, wait }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "common-types", | ||
"version": "1.21.6", | ||
"version": "1.21.7", | ||
"description": "Common types not included in Typescript", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/lifegadget/common-types", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
326504
7745