Skip to content

chore: rebuild and update to Version 1.0.2 #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 51 additions & 73 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199383,6 +199383,15 @@ module.exports = /******/ (function (modules, runtime) {
// we need to finish reading the response before reassigning response
// which will leak the open socket.
await response.readBody();
// strip authorization header if redirected to a different hostname
if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
for (let header in headers) {
// header names are case insensitive
if (header.toLowerCase() === "authorization") {
delete headers[header];
}
}
}
// let's make the request with the new redirectUrl
info = this._prepareRequest(verb, parsedRedirectUrl, headers);
response = await this.requestRaw(info, data);
Expand Down Expand Up @@ -220945,47 +220954,19 @@ module.exports = /******/ (function (modules, runtime) {

/***/ 7215: /***/ function (module) {
module.exports = {
_from: "@octokit/rest@^16.43.1",
_id: "@octokit/[email protected]",
_inBundle: false,
_integrity:
"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==",
_location: "/@octokit/rest",
_phantomChildren: {
"@octokit/types": "2.5.1",
deprecation: "2.3.1",
once: "1.4.0",
},
_requested: {
type: "range",
registry: true,
raw: "@octokit/rest@^16.43.1",
name: "@octokit/rest",
escapedName: "@octokit%2frest",
scope: "@octokit",
rawSpec: "^16.43.1",
saveSpec: null,
fetchSpec: "^16.43.1",
},
_requiredBy: ["/@actions/github"],
_resolved:
"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz",
_shasum: "3b11e7d1b1ac2bbeeb23b08a17df0b20947eda6b",
_spec: "@octokit/rest@^16.43.1",
_where:
"/Users/ryanemer/actions/aws-codebuild-run-project/node_modules/@actions/github",
author: { name: "Gregor Martynus", url: "https://github.com/gr2m" },
bugs: { url: "https://github.com/octokit/rest.js/issues" },
bundleDependencies: false,
bundlesize: [
{ path: "./dist/octokit-rest.min.js.gz", maxSize: "33 kB" },
],
name: "@octokit/rest",
version: "16.43.1",
publishConfig: { access: "public" },
description: "GitHub REST API client for Node.js",
keywords: ["octokit", "github", "rest", "api-client"],
author: "Gregor Martynus (https://github.com/gr2m)",
contributors: [
{ name: "Mike de Boer", email: "[email protected]" },
{ name: "Fabian Jakobs", email: "[email protected]" },
{ name: "Joe Gallo", email: "[email protected]" },
{ name: "Gregor Martynus", url: "https://github.com/gr2m" },
],
repository: "https://github.com/octokit/rest.js",
dependencies: {
"@octokit/auth-token": "^2.4.0",
"@octokit/plugin-paginate-rest": "^1.1.1",
Expand All @@ -221004,8 +220985,6 @@ module.exports = /******/ (function (modules, runtime) {
once: "^1.4.0",
"universal-user-agent": "^4.0.0",
},
deprecated: false,
description: "GitHub REST API client for Node.js",
devDependencies: {
"@gimenete/type-writer": "^0.1.3",
"@octokit/auth": "^1.1.1",
Expand Down Expand Up @@ -221041,58 +221020,57 @@ module.exports = /******/ (function (modules, runtime) {
"webpack-bundle-analyzer": "^3.0.0",
"webpack-cli": "^3.0.0",
},
files: ["index.js", "index.d.ts", "lib", "plugins"],
homepage: "https://github.com/octokit/rest.js#readme",
keywords: ["octokit", "github", "rest", "api-client"],
license: "MIT",
name: "@octokit/rest",
nyc: { ignore: ["test"] },
publishConfig: { access: "public" },
release: {
publish: [
"@semantic-release/npm",
{
path: "@semantic-release/github",
assets: ["dist/*", "!dist/*.map.gz"],
},
],
},
repository: {
type: "git",
url: "git+https://github.com/octokit/rest.js.git",
},
types: "index.d.ts",
scripts: {
build: "npm-run-all build:*",
"build:browser": "npm-run-all build:browser:*",
"build:browser:development":
"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json",
"build:browser:production":
"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map",
"build:ts": "npm run -s update-endpoints:typescript",
coverage: "nyc report --reporter=html && open coverage/index.html",
"generate-bundle-report":
"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",
lint:
"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json",
"lint:fix":
"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json",
"postvalidate:ts":
"tsc --noEmit --target es6 test/typescript-validate.ts",
"prebuild:browser": "mkdirp dist/",
pretest: "npm run -s lint",
"prevalidate:ts": "npm run -s build:ts",
"start-fixtures-server": "octokit-fixtures-server",
test: 'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',
"test:browser": "cypress run --browser chrome",
build: "npm-run-all build:*",
"build:ts": "npm run -s update-endpoints:typescript",
"prebuild:browser": "mkdirp dist/",
"build:browser": "npm-run-all build:browser:*",
"build:browser:development":
"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json",
"build:browser:production":
"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map",
"generate-bundle-report":
"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",
"update-endpoints": "npm-run-all update-endpoints:*",
"update-endpoints:fetch-json":
"node scripts/update-endpoints/fetch-json",
"update-endpoints:typescript":
"node scripts/update-endpoints/typescript",
"prevalidate:ts": "npm run -s build:ts",
"validate:ts": "tsc --target es6 --noImplicitAny index.d.ts",
"postvalidate:ts":
"tsc --noEmit --target es6 test/typescript-validate.ts",
"start-fixtures-server": "octokit-fixtures-server",
},
types: "index.d.ts",
version: "16.43.1",
license: "MIT",
files: ["index.js", "index.d.ts", "lib", "plugins"],
nyc: { ignore: ["test"] },
release: {
publish: [
"@semantic-release/npm",
{
path: "@semantic-release/github",
assets: ["dist/*", "!dist/*.map.gz"],
},
],
},
bundlesize: [
{ path: "./dist/octokit-rest.min.js.gz", maxSize: "33 kB" },
],
_resolved:
"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz",
_integrity:
"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==",
_from: "@octokit/[email protected]",
};

/***/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-actions/codebuild-run-build",
"version": "1.0.0",
"version": "1.0.2",
"description": "Execute CodeBuild::startBuild for the current repo.",
"main": "index.js",
"scripts": {
Expand Down