Socket
Socket
Sign inDemoInstall

@aws-sdk/types

Package Overview
Dependencies
Maintainers
4
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/types - npm Package Compare versions

Comparing version 0.1.0-preview.3 to 0.1.0-preview.4

README.md

56

build/client.d.ts

@@ -1,2 +0,10 @@

import { MiddlewareStack } from './middleware';
import { MiddlewareStack, Terminalware } from "./middleware";
import { Provider, Decoder, Encoder, UrlParser } from "./util";
import { StreamCollector, ResponseParser } from "./unmarshaller";
import { RequestSerializer } from "./marshaller";
import { HttpEndpoint, HttpHandler } from "./http";
import { Command } from "./command";
import { MetadataBearer } from "./response";
import { Credentials } from "./credentials";
import { Hash, HashConstructor } from "./crypto";
export interface ConfigurationPropertyDefinition<InputType, ResolvedType extends InputType, ServiceConfiguration extends {

@@ -49,1 +57,47 @@ [key: string]: any;

};
/**
* A general interface for service clients' configuration interface.
* It is idempotent among browser or node clients
*/
export interface ClientResolvedConfigurationBase<OutputTypes extends object, StreamType> {
credentials?: Provider<Credentials>;
profile?: string;
maxRedirects?: number;
maxRetries?: number;
region?: Provider<string>;
sslEnabled?: boolean;
urlParser?: UrlParser;
endpointProvider?: any;
endpoint?: Provider<HttpEndpoint>;
base64Decoder?: Decoder;
base64Encoder?: Encoder;
utf8Decoder?: Decoder;
utf8Incoder?: Encoder;
streamCollector?: StreamCollector<StreamType>;
serializer?: Provider<RequestSerializer<StreamType>>;
parser?: ResponseParser<StreamType>;
_user_injected_http_handler?: boolean;
httpHandler?: HttpHandler<StreamType>;
handler?: Terminalware<OutputTypes, StreamType>;
md5?: {
new (): Hash;
};
sha256?: HashConstructor;
}
/**
* function definition for different overrides of client's 'send' function.
*/
interface InvokeFunction<InputTypes extends object, OutputTypes extends MetadataBearer, StreamType> {
<InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ClientResolvedConfigurationBase<OutputTypes, StreamType>, StreamType>): Promise<OutputType>;
<InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ClientResolvedConfigurationBase<OutputTypes, StreamType>, StreamType>, cb: (err: any, data?: OutputType) => void): void;
<InputType extends InputTypes, OutputType extends OutputTypes>(command: Command<InputTypes, InputType, OutputTypes, OutputType, ClientResolvedConfigurationBase<OutputTypes, StreamType>, StreamType>, cb?: (err: any, data?: OutputType) => void): Promise<OutputType> | void;
}
/**
* A general interface for service clients, idempotent to browser or node clients
*/
export interface AWSClient<InputTypes extends object, OutputTypes extends MetadataBearer, StreamType> {
readonly config: ClientResolvedConfigurationBase<OutputTypes, StreamType>;
middlewareStack: MiddlewareStack<InputTypes, OutputTypes, StreamType>;
send: InvokeFunction<InputTypes, OutputTypes, StreamType>;
}
export {};

11

build/command.d.ts

@@ -1,5 +0,6 @@

import { AbortSignal } from './abort';
import { HttpOptions } from './http';
import { Handler, MiddlewareStack } from './middleware';
import { MetadataBearer } from './response';
import { AbortSignal } from "./abort";
import { HttpOptions } from "./http";
import { Handler, MiddlewareStack } from "./middleware";
import { MetadataBearer } from "./response";
import { OperationModel } from "./protocol";
export interface CommandInput {

@@ -27,3 +28,5 @@ /**

readonly input: InputType;
readonly model: OperationModel;
readonly middlewareStack: MiddlewareStack<InputType, OutputType, StreamType>;
resolveMiddleware(stack: MiddlewareStack<ClientInput, ClientOutput, StreamType>, configuration: ResolvedConfiguration): Handler<InputType, OutputType>;
}

@@ -1,2 +0,2 @@

import { Provider } from './util';
import { Provider } from "./util";
/**

@@ -3,0 +3,0 @@ * An object representing temporary or permanent AWS credentials.

@@ -16,3 +16,3 @@ export declare type SourceData = string | ArrayBuffer | ArrayBufferView;

*/
update(toHash: SourceData, encoding?: 'utf8' | 'ascii' | 'latin1'): void;
update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void;
/**

@@ -19,0 +19,0 @@ * Finalizes the hash and provides a promise that will be fulfilled with the

@@ -1,2 +0,2 @@

import { MetadataBearer } from './index';
import { MetadataBearer } from "./index";
/**

@@ -16,3 +16,3 @@ * Exceptions that responded from AWS service containing raw http response

export interface UnkownServiceException extends ServiceException<undefined> {
name: 'Error';
name: "Error";
}

@@ -1,2 +0,2 @@

import { AbortSignal } from './abort';
import { AbortSignal } from "./abort";
/**

@@ -3,0 +3,0 @@ * A collection of key/value pairs with case-insensitive keys.

@@ -1,15 +0,15 @@

export * from './abort';
export * from './client';
export * from './command';
export * from './credentials';
export * from './crypto';
export * from './exception';
export * from './http';
export * from './logger';
export * from './marshaller';
export * from './middleware';
export * from './protocol';
export * from './response';
export * from './signature';
export * from './unmarshaller';
export * from './util';
export * from "./abort";
export * from "./client";
export * from "./command";
export * from "./credentials";
export * from "./crypto";
export * from "./exception";
export * from "./http";
export * from "./logger";
export * from "./marshaller";
export * from "./middleware";
export * from "./protocol";
export * from "./response";
export * from "./signature";
export * from "./unmarshaller";
export * from "./util";

@@ -1,2 +0,2 @@

import { Member } from './protocol';
import { Member } from "./protocol";
/**

@@ -10,3 +10,3 @@ * A list of logger's log level. These levels are sorted in

*/
export declare type LogLevel = 'all' | 'log' | 'info' | 'warn' | 'error' | 'off';
export declare type LogLevel = "all" | "log" | "info" | "warn" | "error" | "off";
/**

@@ -13,0 +13,0 @@ * An object consumed by Logger constructor to initiate a logger object.

@@ -1,4 +0,4 @@

import { HttpRequest } from './http';
import { OperationModel } from './protocol';
import { Logger } from './logger';
import { HttpRequest } from "./http";
import { OperationModel } from "./protocol";
import { Logger } from "./logger";
export interface HandlerArguments<Input extends object> {

@@ -105,3 +105,3 @@ /**

}
export declare type Step = 'initialize' | 'serialize' | 'build' | 'finalize';
export declare type Step = "initialize" | "serialize" | "build" | "finalize";
export interface HandlerOptions {

@@ -156,9 +156,9 @@ /**

export interface SerializeHandlerOptions extends HandlerOptions {
step: 'serialize';
step: "serialize";
}
export interface BuildHandlerOptions extends HandlerOptions {
step: 'build';
step: "build";
}
export interface FinalizeHandlerOptions extends HandlerOptions {
step: 'finalize';
step: "finalize";
}

@@ -170,3 +170,3 @@ export interface MiddlewareStack<Input extends object, Output extends object, Stream = Uint8Array> {

add(middleware: Middleware<Input, Output>, options?: HandlerOptions & {
step?: 'initialize';
step?: "initialize";
}): void;

@@ -194,2 +194,7 @@ /**

/**
* same to clone, but only filter in middlewares when evaluation callback
* function returns true.
*/
filter(callbackfn: (middlewareStats: HandlerOptions) => boolean): MiddlewareStack<Input, Output, Stream>;
/**
* Create a list containing the middlewares in this list as well as the

@@ -196,0 +201,0 @@ * middlewares in the `from` list. Neither source is modified, and step

@@ -1,3 +0,3 @@

export declare type SerializationType = 'blob' | 'boolean' | 'float' | 'integer' | 'list' | 'map' | 'string' | 'structure' | 'timestamp';
export declare type MemberLocation = 'header' | 'headers' | 'uri' | 'querystring' | 'statusCode';
export declare type SerializationType = "blob" | "boolean" | "float" | "integer" | "list" | "map" | "string" | "structure" | "timestamp";
export declare type MemberLocation = "header" | "headers" | "uri" | "querystring" | "statusCode";
export interface XmlNamespace {

@@ -25,18 +25,18 @@ prefix?: string;

export interface Blob extends Shape {
type: 'blob';
type: "blob";
streaming?: boolean;
}
export interface Boolean extends Shape {
type: 'boolean';
type: "boolean";
}
export interface Float extends Shape {
type: 'float';
type: "float";
min?: number;
}
export interface Integer extends Shape {
type: 'integer';
type: "integer";
min?: number;
}
export interface List extends Shape {
type: 'list';
type: "list";
member: Member;

@@ -47,3 +47,3 @@ flattened?: boolean;

export interface Map extends Shape {
type: 'map';
type: "map";
key: Member;

@@ -57,3 +57,3 @@ value: Member;

export interface String extends Shape {
type: 'string';
type: "string";
min?: number;

@@ -64,3 +64,3 @@ jsonValue?: boolean;

export interface Structure extends Shape {
type: 'structure';
type: "structure";
required: Array<string>;

@@ -75,3 +75,3 @@ members: {

export interface Timestamp extends Shape {
type: 'timestamp';
type: "timestamp";
timestampFormat?: string;

@@ -92,4 +92,4 @@ }

}
export declare type SupportedProtocol = 'json' | 'rest-json' | 'rest-xml' | 'query' | 'ec2';
export declare type SupportedSignatureVersion = 'v4' | 's3' | 's3v4' | 'v4-unsigned-body' | 'none';
export declare type SupportedProtocol = "json" | "rest-json" | "rest-xml" | "query" | "ec2";
export declare type SupportedSignatureVersion = "v4" | "s3" | "s3v4" | "v4-unsigned-body" | "none";
export interface ServiceMetadata {

@@ -96,0 +96,0 @@ apiVersion: string;

@@ -1,2 +0,2 @@

import { HeaderBag } from './http';
import { HeaderBag } from "./http";
export interface ResponseMetadata {

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { HttpRequest } from './http';
import { HttpRequest } from "./http";
/**

@@ -3,0 +3,0 @@ * A {Date} object, a unix (epoch) timestamp in seconds, or a string that can be

import { Member, OperationModel } from "./protocol";
import { HttpResponse, ResolvedHttpResponse } from "./http";
import { MetadataBearer } from './response';
import { ServiceException } from './exception';
import { MetadataBearer } from "./response";
import { ServiceException } from "./exception";
export interface BodyParser<SerializedType = string> {

@@ -6,0 +6,0 @@ /**

@@ -1,2 +0,2 @@

import { HttpEndpoint } from './http';
import { HttpEndpoint } from "./http";
/**

@@ -3,0 +3,0 @@ * A function that, given a TypedArray of bytes, can produce a string

@@ -6,3 +6,3 @@ # Change Log

# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/types@0.1.0-preview.2...@aws-sdk/types@0.1.0-preview.3) (2019-04-19)
# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/types@0.1.0-preview.2...@aws-sdk/types@0.1.0-preview.4) (2019-07-12)

@@ -12,2 +12,15 @@

* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10c))
* make operation model accessible from commands ([#242](https://github.com/aws/aws-sdk-js-v3/issues/242)) ([8bf91e2](https://github.com/aws/aws-sdk-js-v3/commit/8bf91e2))
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab))
* **s3-request-presigner:** provide a s3 request presigner ([#266](https://github.com/aws/aws-sdk-js-v3/issues/266)) ([3f00b99](https://github.com/aws/aws-sdk-js-v3/commit/3f00b99))
* **util-create-request:** create request package ([#257](https://github.com/aws/aws-sdk-js-v3/issues/257)) ([9855d49](https://github.com/aws/aws-sdk-js-v3/commit/9855d49))
# 0.1.0 (2019-04-19)
### Features
* timestamp serializing and de-serializing ([#216](https://github.com/aws/aws-sdk-js-v3/issues/216)) ([0556c99](https://github.com/aws/aws-sdk-js-v3/commit/0556c99))

@@ -19,7 +32,12 @@

# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/types@0.1.0-preview.2...@aws-sdk/types@0.1.0-preview.3) (2019-04-19)
### Features
- timestamp serializing and de-serializing ([#216](https://github.com/aws/aws-sdk-js-v3/issues/216)) ([0556c99](https://github.com/aws/aws-sdk-js-v3/commit/0556c99))
# [0.1.0-preview.2](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/types@0.1.0-preview.1...@aws-sdk/types@0.1.0-preview.2) (2019-03-27)
### Bug Fixes
* generate model metadata xmlNamespace properly ([#197](https://github.com/aws/aws-sdk-js-v3/issues/197)) ([f2aa325](https://github.com/aws/aws-sdk-js-v3/commit/f2aa325))
- generate model metadata xmlNamespace properly ([#197](https://github.com/aws/aws-sdk-js-v3/issues/197)) ([f2aa325](https://github.com/aws/aws-sdk-js-v3/commit/f2aa325))
{
"name": "@aws-sdk/types",
"version": "0.1.0-preview.3",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"description": "Types for the AWS SDK",
"devDependencies": {
"typescript": "^3.0.0"
},
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc",
"test": "exit 0"
},
"author": {
"name": "AWS SDK for JavaScript Team",
"email": "aws-sdk-js@amazon.com",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0"
"name": "@aws-sdk/types",
"version": "0.1.0-preview.4",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"description": "Types for the AWS SDK",
"devDependencies": {
"typescript": "~3.4.0"
},
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc",
"test": "exit 0"
},
"author": {
"name": "AWS SDK for JavaScript Team",
"email": "",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0"
}
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"lib": [
"es5",
"es2015.promise",
"es2015.collection",
"es2015.iterable",
"es2015.symbol.wellknown"
],
"strict": true,
"declaration": true,
"rootDir": "./src",
"outDir": "./build"
}
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"lib": [
"es5",
"es2015.promise",
"es2015.collection",
"es2015.iterable",
"es2015.symbol.wellknown"
],
"strict": true,
"declaration": true,
"rootDir": "./src",
"outDir": "./build"
}
}
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