From adfb7bfeda360ffe5a5a5f1aa1d9e26199ad9039 Mon Sep 17 00:00:00 2001 From: Patricio Ascencio Date: Thu, 5 Aug 2021 05:14:47 -0400 Subject: [PATCH] [FEA]: Add module types definition --- index.d.ts | 21 +++++++++++++++++++++ package.json | 13 +++++++------ 2 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..7004501 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,21 @@ +import { Transform } from 'stream' + +interface Credentials { + accessKeyId?: string + secretAccessKey?: string + sessionToken?: string +} + +interface Options { + distribution: string + states?: string[] + originPath?: string + wait: boolean + indexRootPath: boolean + credentials?: Credentials + accessKeyId?: string + secretAccessKey?: string + sessionToken?: string +} + +export default function (options: Options): Transform \ No newline at end of file diff --git a/package.json b/package.json index aad8015..8f5e1d6 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,12 @@ { - "name": "gulp-cloudfront-invalidate-aws-publish", - "version": "1.0.0", - "author": "Lee Pender (http://lpender.github.com)", + "name": "@pascencio/gulp-cloudfront-invalidate-aws-publish", + "version": "1.1.3", + "author": "Patricio Ascencio (http://pascencio.github.com)", "description": "Invalidates paths published with gulp-awspublish", - "homepage": "https://github.com/lpender/gulp-cloudfront-invalidate-aws-publish", + "homepage": "https://github.com/pascencio/gulp-cloudfront-invalidate-aws-publish", + "types": "index.d.ts", "main": "index.js", - "repository": "lpender/gulp-cloudfront-invalidate-aws-publish", + "repository": "pascencio/gulp-cloudfront-invalidate-aws-publish", "keywords": [ "gulp", "cloudfront", @@ -21,7 +22,7 @@ "through2": "2.0.x" }, "bugs": { - "url": "https://github.com/lpender/gulp-cloudfront-invalidate-aws-publish/issues" + "url": "https://github.com/pascencio/gulp-cloudfront-invalidate-aws-publish/issues" }, "licenses": [ {