common-types
Advanced tools
Comparing version 1.24.0 to 1.24.1
@@ -467,6 +467,2 @@ 'use strict'; | ||
function isBearerToken(token) { | ||
return typeof token === "string" && /^Bearer /.test(token); | ||
} | ||
/** | ||
@@ -489,2 +485,11 @@ * A _type guard_ designed to test whether an input is of type `TypeSubtype` | ||
/** type guard to distinguish an NPM repository representation */ | ||
function isNpmInfoRepository(repository) { | ||
return isNonNullObject(repository) && repository.url; | ||
} | ||
function isBearerToken(token) { | ||
return typeof token === "string" && /^Bearer /.test(token); | ||
} | ||
const AWS_REGIONS = [ | ||
@@ -617,2 +622,3 @@ "us-east-1", | ||
exports.isNonNullObject = isNonNullObject; | ||
exports.isNpmInfoRepository = isNpmInfoRepository; | ||
exports.isProxyRequestContextV2 = isProxyRequestContextV2; | ||
@@ -619,0 +625,0 @@ exports.isServerlessFunctionHandler = isServerlessFunctionHandler; |
import { url } from "./aliases"; | ||
import { IDictionary } from "./basics"; | ||
export interface INpmInfoRepository { | ||
type: "git" | string; | ||
/** looks like "git+https://github.com/organization/repo.git" for github */ | ||
url: string; | ||
} | ||
export interface INpmInfo { | ||
@@ -39,2 +44,4 @@ name: string; | ||
} | ||
/** type guard to distinguish an NPM repository representation */ | ||
export declare function isNpmInfoRepository(repository: string | INpmInfoRepository): string | false; | ||
/** | ||
@@ -47,7 +54,2 @@ * named times and a time for each version `0.1.2`, etc | ||
} | ||
export interface INpmInfoRepository { | ||
type: "git" | string; | ||
/** looks like "git+https://github.com/organization/repo.git" for github */ | ||
url: string; | ||
} | ||
export interface INpmInfoPerson { | ||
@@ -54,0 +56,0 @@ name: string; |
@@ -463,6 +463,2 @@ /** | ||
function isBearerToken(token) { | ||
return typeof token === "string" && /^Bearer /.test(token); | ||
} | ||
/** | ||
@@ -485,2 +481,11 @@ * A _type guard_ designed to test whether an input is of type `TypeSubtype` | ||
/** type guard to distinguish an NPM repository representation */ | ||
function isNpmInfoRepository(repository) { | ||
return isNonNullObject(repository) && repository.url; | ||
} | ||
function isBearerToken(token) { | ||
return typeof token === "string" && /^Bearer /.test(token); | ||
} | ||
const AWS_REGIONS = [ | ||
@@ -596,3 +601,3 @@ "us-east-1", | ||
export { AWS_REGIONS, AwsRegionName, HttpStatusCodes, LambdaEventParser, StepFunctionMissingDataTreatment, createBindDeploymentConfig, getBodyFromPossibleLambdaProxyRequest, isArn, isArnPartition, isArnResource, isArnService, isAwsAccountId, isAwsRegion, isAwsStage, isBearerToken, isEventBridgeArn, isLambdaArn, isLambdaFunctionArn, isLambdaProxyRequest, isNonNullObject, isProxyRequestContextV2, isServerlessFunctionHandler, isServerlessFunctionImage, isStepFunctionArn, isTypeSubtype, parseStack, wait }; | ||
export { AWS_REGIONS, AwsRegionName, HttpStatusCodes, LambdaEventParser, StepFunctionMissingDataTreatment, createBindDeploymentConfig, getBodyFromPossibleLambdaProxyRequest, isArn, isArnPartition, isArnResource, isArnService, isAwsAccountId, isAwsRegion, isAwsStage, isBearerToken, isEventBridgeArn, isLambdaArn, isLambdaFunctionArn, isLambdaProxyRequest, isNonNullObject, isNpmInfoRepository, isProxyRequestContextV2, isServerlessFunctionHandler, isServerlessFunctionImage, isStepFunctionArn, isTypeSubtype, parseStack, wait }; | ||
//# sourceMappingURL=index.js.map |
import { url } from "./aliases"; | ||
import { IDictionary } from "./basics"; | ||
export interface INpmInfoRepository { | ||
type: "git" | string; | ||
/** looks like "git+https://github.com/organization/repo.git" for github */ | ||
url: string; | ||
} | ||
export interface INpmInfo { | ||
@@ -39,2 +44,4 @@ name: string; | ||
} | ||
/** type guard to distinguish an NPM repository representation */ | ||
export declare function isNpmInfoRepository(repository: string | INpmInfoRepository): string | false; | ||
/** | ||
@@ -47,7 +54,2 @@ * named times and a time for each version `0.1.2`, etc | ||
} | ||
export interface INpmInfoRepository { | ||
type: "git" | string; | ||
/** looks like "git+https://github.com/organization/repo.git" for github */ | ||
url: string; | ||
} | ||
export interface INpmInfoPerson { | ||
@@ -54,0 +56,0 @@ name: string; |
{ | ||
"name": "common-types", | ||
"version": "1.24.0", | ||
"version": "1.24.1", | ||
"description": "Common Types for 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
361919
8553