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

common-types

Package Overview
Dependencies
Maintainers
1
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-types - npm Package Compare versions

Comparing version 1.24.0 to 1.24.1

14

dist/cjs/index.js

@@ -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

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