Merge pull request #284 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.1.0
Bump @docker/actions-toolkit from 0.1.0-beta.19 to 0.1.0
This commit is contained in:
11 files changed
+1331
-1316
No files matched your search
@@ -0,0 +1,207 @@
|
||||
import {jest} from '@jest/globals';
|
||||
|
||||
export const context = {
|
||||
repo: {
|
||||
owner: 'docker',
|
||||
repo: 'actions-toolkit'
|
||||
},
|
||||
ref: 'refs/heads/master',
|
||||
runId: 123,
|
||||
payload: {
|
||||
after: '860c1904a1ce19322e91ac35af1ab07466440c37',
|
||||
base_ref: null,
|
||||
before: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
|
||||
commits: [
|
||||
{
|
||||
author: {
|
||||
email: 'crazy-max@users.noreply.github.com',
|
||||
name: 'CrazyMax',
|
||||
username: 'crazy-max'
|
||||
},
|
||||
committer: {
|
||||
email: 'crazy-max@users.noreply.github.com',
|
||||
name: 'CrazyMax',
|
||||
username: 'crazy-max'
|
||||
},
|
||||
distinct: true,
|
||||
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
|
||||
message: 'hello dev',
|
||||
timestamp: '2022-04-19T11:27:24+02:00',
|
||||
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
|
||||
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
|
||||
}
|
||||
],
|
||||
compare: 'https://github.com/docker/test-docker-action/compare/5f3331d7f704...860c1904a1ce',
|
||||
created: false,
|
||||
deleted: false,
|
||||
forced: false,
|
||||
head_commit: {
|
||||
author: {
|
||||
email: 'crazy-max@users.noreply.github.com',
|
||||
name: 'CrazyMax',
|
||||
username: 'crazy-max'
|
||||
},
|
||||
committer: {
|
||||
email: 'crazy-max@users.noreply.github.com',
|
||||
name: 'CrazyMax',
|
||||
username: 'crazy-max'
|
||||
},
|
||||
distinct: true,
|
||||
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
|
||||
message: 'hello dev',
|
||||
timestamp: '2022-04-19T11:27:24+02:00',
|
||||
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
|
||||
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
|
||||
},
|
||||
organization: {
|
||||
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
|
||||
description: 'Docker helps developers bring their ideas to life by conquering the complexity of app development.',
|
||||
events_url: 'https://api.github.com/orgs/docker/events',
|
||||
hooks_url: 'https://api.github.com/orgs/docker/hooks',
|
||||
id: 5429470,
|
||||
issues_url: 'https://api.github.com/orgs/docker/issues',
|
||||
login: 'docker',
|
||||
members_url: 'https://api.github.com/orgs/docker/members{/member}',
|
||||
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
|
||||
public_members_url: 'https://api.github.com/orgs/docker/public_members{/member}',
|
||||
repos_url: 'https://api.github.com/orgs/docker/repos',
|
||||
url: 'https://api.github.com/orgs/docker'
|
||||
},
|
||||
pusher: {
|
||||
email: 'github@crazymax.dev',
|
||||
name: 'crazy-max'
|
||||
},
|
||||
ref: 'refs/heads/dev',
|
||||
repository: {
|
||||
allow_forking: true,
|
||||
archive_url: 'https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}',
|
||||
archived: false,
|
||||
assignees_url: 'https://api.github.com/repos/docker/test-docker-action/assignees{/user}',
|
||||
blobs_url: 'https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}',
|
||||
branches_url: 'https://api.github.com/repos/docker/test-docker-action/branches{/branch}',
|
||||
clone_url: 'https://github.com/docker/test-docker-action.git',
|
||||
collaborators_url: 'https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}',
|
||||
comments_url: 'https://api.github.com/repos/docker/test-docker-action/comments{/number}',
|
||||
commits_url: 'https://api.github.com/repos/docker/test-docker-action/commits{/sha}',
|
||||
compare_url: 'https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}',
|
||||
contents_url: 'https://api.github.com/repos/docker/test-docker-action/contents/{+path}',
|
||||
contributors_url: 'https://api.github.com/repos/docker/test-docker-action/contributors',
|
||||
created_at: 1596792180,
|
||||
default_branch: 'master',
|
||||
deployments_url: 'https://api.github.com/repos/docker/test-docker-action/deployments',
|
||||
description: 'Test "Docker" Actions',
|
||||
disabled: false,
|
||||
downloads_url: 'https://api.github.com/repos/docker/test-docker-action/downloads',
|
||||
events_url: 'https://api.github.com/repos/docker/test-docker-action/events',
|
||||
fork: false,
|
||||
forks: 1,
|
||||
forks_count: 1,
|
||||
forks_url: 'https://api.github.com/repos/docker/test-docker-action/forks',
|
||||
full_name: 'docker/test-docker-action',
|
||||
git_commits_url: 'https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}',
|
||||
git_refs_url: 'https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}',
|
||||
git_tags_url: 'https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}',
|
||||
git_url: 'git://github.com/docker/test-docker-action.git',
|
||||
has_downloads: true,
|
||||
has_issues: true,
|
||||
has_pages: false,
|
||||
has_projects: true,
|
||||
has_wiki: true,
|
||||
homepage: '',
|
||||
hooks_url: 'https://api.github.com/repos/docker/test-docker-action/hooks',
|
||||
html_url: 'https://github.com/docker/test-docker-action',
|
||||
id: 285789493,
|
||||
is_template: false,
|
||||
issue_comment_url: 'https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}',
|
||||
issue_events_url: 'https://api.github.com/repos/docker/test-docker-action/issues/events{/number}',
|
||||
issues_url: 'https://api.github.com/repos/docker/test-docker-action/issues{/number}',
|
||||
keys_url: 'https://api.github.com/repos/docker/test-docker-action/keys{/key_id}',
|
||||
labels_url: 'https://api.github.com/repos/docker/test-docker-action/labels{/name}',
|
||||
language: 'JavaScript',
|
||||
languages_url: 'https://api.github.com/repos/docker/test-docker-action/languages',
|
||||
license: {
|
||||
key: 'mit',
|
||||
name: 'MIT License',
|
||||
node_id: 'MDc6TGljZW5zZTEz',
|
||||
spdx_id: 'MIT',
|
||||
url: 'https://api.github.com/licenses/mit'
|
||||
},
|
||||
master_branch: 'master',
|
||||
merges_url: 'https://api.github.com/repos/docker/test-docker-action/merges',
|
||||
milestones_url: 'https://api.github.com/repos/docker/test-docker-action/milestones{/number}',
|
||||
mirror_url: null,
|
||||
name: 'test-docker-action',
|
||||
node_id: 'MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=',
|
||||
notifications_url: 'https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}',
|
||||
open_issues: 6,
|
||||
open_issues_count: 6,
|
||||
organization: 'docker',
|
||||
owner: {
|
||||
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
|
||||
email: 'info@docker.com',
|
||||
events_url: 'https://api.github.com/users/docker/events{/privacy}',
|
||||
followers_url: 'https://api.github.com/users/docker/followers',
|
||||
following_url: 'https://api.github.com/users/docker/following{/other_user}',
|
||||
gists_url: 'https://api.github.com/users/docker/gists{/gist_id}',
|
||||
gravatar_id: '',
|
||||
html_url: 'https://github.com/docker',
|
||||
id: 5429470,
|
||||
login: 'docker',
|
||||
name: 'docker',
|
||||
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
|
||||
organizations_url: 'https://api.github.com/users/docker/orgs',
|
||||
received_events_url: 'https://api.github.com/users/docker/received_events',
|
||||
repos_url: 'https://api.github.com/users/docker/repos',
|
||||
site_admin: false,
|
||||
starred_url: 'https://api.github.com/users/docker/starred{/owner}{/repo}',
|
||||
subscriptions_url: 'https://api.github.com/users/docker/subscriptions',
|
||||
type: 'Organization',
|
||||
url: 'https://api.github.com/users/docker'
|
||||
},
|
||||
private: true,
|
||||
pulls_url: 'https://api.github.com/repos/docker/test-docker-action/pulls{/number}',
|
||||
pushed_at: 1650360446,
|
||||
releases_url: 'https://api.github.com/repos/docker/test-docker-action/releases{/id}',
|
||||
size: 796,
|
||||
ssh_url: 'git@github.com:docker/test-docker-action.git',
|
||||
stargazers: 0,
|
||||
stargazers_count: 0,
|
||||
stargazers_url: 'https://api.github.com/repos/docker/test-docker-action/stargazers',
|
||||
statuses_url: 'https://api.github.com/repos/docker/test-docker-action/statuses/{sha}',
|
||||
subscribers_url: 'https://api.github.com/repos/docker/test-docker-action/subscribers',
|
||||
subscription_url: 'https://api.github.com/repos/docker/test-docker-action/subscription',
|
||||
svn_url: 'https://github.com/docker/test-docker-action',
|
||||
tags_url: 'https://api.github.com/repos/docker/test-docker-action/tags',
|
||||
teams_url: 'https://api.github.com/repos/docker/test-docker-action/teams',
|
||||
topics: [],
|
||||
trees_url: 'https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}',
|
||||
updated_at: '2022-04-19T09:05:09Z',
|
||||
url: 'https://github.com/docker/test-docker-action',
|
||||
visibility: 'private',
|
||||
watchers: 0,
|
||||
watchers_count: 0
|
||||
},
|
||||
sender: {
|
||||
avatar_url: 'https://avatars.githubusercontent.com/u/1951866?v=4',
|
||||
events_url: 'https://api.github.com/users/crazy-max/events{/privacy}',
|
||||
followers_url: 'https://api.github.com/users/crazy-max/followers',
|
||||
following_url: 'https://api.github.com/users/crazy-max/following{/other_user}',
|
||||
gists_url: 'https://api.github.com/users/crazy-max/gists{/gist_id}',
|
||||
gravatar_id: '',
|
||||
html_url: 'https://github.com/crazy-max',
|
||||
id: 1951866,
|
||||
login: 'crazy-max',
|
||||
node_id: 'MDQ6VXNlcjE5NTE4NjY=',
|
||||
organizations_url: 'https://api.github.com/users/crazy-max/orgs',
|
||||
received_events_url: 'https://api.github.com/users/crazy-max/received_events',
|
||||
repos_url: 'https://api.github.com/users/crazy-max/repos',
|
||||
site_admin: false,
|
||||
starred_url: 'https://api.github.com/users/crazy-max/starred{/owner}{/repo}',
|
||||
subscriptions_url: 'https://api.github.com/users/crazy-max/subscriptions',
|
||||
type: 'User',
|
||||
url: 'https://api.github.com/users/crazy-max'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const getOctokit = jest.fn();
|
||||
+32
-25
@@ -1,9 +1,19 @@
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
import {beforeEach, describe, expect, test, it, jest} from '@jest/globals';
|
||||
import {afterEach, beforeEach, describe, expect, test, it, jest} from '@jest/globals';
|
||||
import * as dotenv from 'dotenv';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import {ContextSource, getInputs, Inputs} from '../src/context';
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
import {Git} from '@docker/actions-toolkit/lib/git';
|
||||
import {GitHub} from '@docker/actions-toolkit/lib/github';
|
||||
|
||||
import {ContextSource, getContext, getInputs, Inputs} from '../src/context';
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
jest.spyOn(GitHub, 'context', 'get').mockImplementation((): Context => {
|
||||
return new Context();
|
||||
});
|
||||
});
|
||||
|
||||
describe('getInputs', () => {
|
||||
beforeEach(() => {
|
||||
@@ -66,37 +76,34 @@ describe('getInputs', () => {
|
||||
});
|
||||
|
||||
describe('getContext', () => {
|
||||
it('get context with workflow', async () => {
|
||||
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures/event_create_branch.env')));
|
||||
|
||||
const originalEnv = process.env;
|
||||
beforeEach(() => {
|
||||
jest.resetModules();
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const {getContext} = require('../src/context');
|
||||
const contextResult = await getContext(ContextSource.workflow);
|
||||
|
||||
expect(contextResult.ref).toEqual('refs/heads/dev');
|
||||
expect(contextResult.sha).toEqual('5f3331d7f7044c18ca9f12c77d961c4d7cf3276a');
|
||||
process.env = {
|
||||
...originalEnv,
|
||||
...dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures/event_create_branch.env')))
|
||||
};
|
||||
});
|
||||
afterEach(() => {
|
||||
process.env = originalEnv;
|
||||
});
|
||||
|
||||
it('get context with git', async () => {
|
||||
jest.resetModules();
|
||||
it('workflow', async () => {
|
||||
const context = await getContext(ContextSource.workflow);
|
||||
expect(context.ref).toEqual('refs/heads/dev');
|
||||
expect(context.sha).toEqual('5f3331d7f7044c18ca9f12c77d961c4d7cf3276a');
|
||||
});
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const git = require('@docker/actions-toolkit/lib/git');
|
||||
jest.spyOn(git.Git, 'context').mockImplementation((): Promise<Context> => {
|
||||
it('git', async () => {
|
||||
jest.spyOn(Git, 'context').mockImplementation((): Promise<Context> => {
|
||||
return Promise.resolve({
|
||||
ref: 'refs/heads/git-test',
|
||||
sha: 'git-test-sha'
|
||||
} as Context);
|
||||
});
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const {getContext} = require('../src/context');
|
||||
|
||||
const contextResult = await getContext(ContextSource.git);
|
||||
|
||||
expect(contextResult.ref).toEqual('refs/heads/git-test');
|
||||
expect(contextResult.sha).toEqual('git-test-sha');
|
||||
const context = await getContext(ContextSource.git);
|
||||
expect(context.ref).toEqual('refs/heads/git-test');
|
||||
expect(context.sha).toEqual('git-test-sha');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ describe('transform', () => {
|
||||
[
|
||||
[`name/foo,name=name/bar,enable=true`], undefined, true
|
||||
]
|
||||
])('given %p', async (l: string[], expected: Image[], invalid: boolean) => {
|
||||
])('given %p', async (l: string[], expected: Image[] | undefined, invalid: boolean) => {
|
||||
try {
|
||||
const images = Transform(l);
|
||||
expect(images).toEqual(expected);
|
||||
|
||||
+14
-24
@@ -5,10 +5,13 @@ import * as dotenv from 'dotenv';
|
||||
import {GitHub} from '@docker/actions-toolkit/lib/github';
|
||||
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
|
||||
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github';
|
||||
import {ContextSource, getInputs, Inputs} from '../src/context';
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
|
||||
import {ContextSource, getContext, getInputs, Inputs} from '../src/context';
|
||||
import {Meta, Version} from '../src/meta';
|
||||
|
||||
import repoFixture from './fixtures/repo.json';
|
||||
|
||||
jest.spyOn(GitHub.prototype, 'repoData').mockImplementation((): Promise<GitHubRepo> => {
|
||||
return <Promise<GitHubRepo>>(repoFixture as unknown);
|
||||
});
|
||||
@@ -21,17 +24,6 @@ jest.mock('moment-timezone', () => {
|
||||
return () => (jest.requireActual('moment-timezone') as typeof import('moment-timezone'))('2020-01-10T00:30:00.000Z');
|
||||
});
|
||||
|
||||
/**
|
||||
* Get a workflow context based on the current environment variables.
|
||||
*/
|
||||
const getFreshWorkflowContext = async () => {
|
||||
jest.resetModules();
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const {getContext} = require('../src/context');
|
||||
const context = await getContext(ContextSource.workflow);
|
||||
return context;
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
Object.keys(process.env).forEach(function (key) {
|
||||
@@ -39,6 +31,9 @@ beforeEach(() => {
|
||||
delete process.env[key];
|
||||
}
|
||||
});
|
||||
jest.spyOn(GitHub, 'context', 'get').mockImplementation((): Context => {
|
||||
return new Context();
|
||||
});
|
||||
});
|
||||
|
||||
describe('isRawStatement', () => {
|
||||
@@ -58,8 +53,7 @@ const tagsLabelsTest = async (name: string, envFile: string, inputs: Inputs, exV
|
||||
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
|
||||
const toolkit = new Toolkit();
|
||||
const repo = await toolkit.github.repoData();
|
||||
const context = await getFreshWorkflowContext();
|
||||
const meta = new Meta({...getInputs(), ...inputs}, context, repo);
|
||||
const meta = new Meta({...getInputs(), ...inputs}, await getContext(ContextSource.workflow), repo);
|
||||
|
||||
const version = meta.version;
|
||||
expect(version).toEqual(exVersion);
|
||||
@@ -2776,8 +2770,7 @@ describe('pr-head-sha', () => {
|
||||
|
||||
const toolkit = new Toolkit();
|
||||
const repo = await toolkit.github.repoData();
|
||||
const context = await getFreshWorkflowContext();
|
||||
const meta = new Meta({...getInputs(), ...inputs}, context, repo);
|
||||
const meta = new Meta({...getInputs(), ...inputs}, await getContext(ContextSource.workflow), repo);
|
||||
|
||||
const version = meta.version;
|
||||
expect(version).toEqual(exVersion);
|
||||
@@ -3719,8 +3712,7 @@ describe('json', () => {
|
||||
|
||||
const toolkit = new Toolkit();
|
||||
const repo = await toolkit.github.repoData();
|
||||
const context = await getFreshWorkflowContext();
|
||||
const meta = new Meta({...getInputs(), ...inputs}, context, repo);
|
||||
const meta = new Meta({...getInputs(), ...inputs}, await getContext(ContextSource.workflow), repo);
|
||||
|
||||
const jsonOutput = meta.getJSON();
|
||||
expect(jsonOutput).toEqual(exJSON);
|
||||
@@ -4026,8 +4018,7 @@ describe('bake', () => {
|
||||
|
||||
const toolkit = new Toolkit();
|
||||
const repo = await toolkit.github.repoData();
|
||||
const context = await getFreshWorkflowContext();
|
||||
const meta = new Meta({...getInputs(), ...inputs}, context, repo);
|
||||
const meta = new Meta({...getInputs(), ...inputs}, await getContext(ContextSource.workflow), repo);
|
||||
|
||||
const bakeFile = meta.getBakeFile();
|
||||
expect(JSON.parse(fs.readFileSync(bakeFile, 'utf8'))).toEqual(exBakeDefinition);
|
||||
@@ -4069,13 +4060,12 @@ describe('sepTags', () => {
|
||||
"user/app:dev,user/app:my,user/app:custom,user/app:tags"
|
||||
]
|
||||
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => {
|
||||
|
||||
|
||||
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
|
||||
|
||||
|
||||
const toolkit = new Toolkit();
|
||||
const repo = await toolkit.github.repoData();
|
||||
const context = await getFreshWorkflowContext();
|
||||
const meta = new Meta({...getInputs(), ...inputs}, context, repo);
|
||||
const meta = new Meta({...getInputs(), ...inputs}, await getContext(ContextSource.workflow), repo);
|
||||
|
||||
expect(meta.getTags().join(inputs.sepTags)).toEqual(expTags);
|
||||
});
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(p,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(p,a,r,d){if(d===undefined)d=r;Object.defineProperty(p,d,{enumerable:true,get:function(){return a[r]}})}:function(p,a,r,d){if(d===undefined)d=r;p[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(p,a){Object.defineProperty(p,"default",{enumerable:true,value:a})}:function(p,a){p["default"]=a});var b=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var a={};if(p!=null)for(var r in p)if(r!=="default"&&Object.hasOwnProperty.call(p,r))d(a,p,r);i(a,p);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const c=b(r(2037));const M=r(5278);function issueCommand(p,a,r){const d=new Command(p,a,r);process.stdout.write(d.toString()+c.EOL)}a.issueCommand=issueCommand;function issue(p,a=""){issueCommand(p,{},a)}a.issue=issue;const z="::";class Command{constructor(p,a,r){if(!p){p="missing.command"}this.command=p;this.properties=a;this.message=r}toString(){let p=z+this.command;if(this.properties&&Object.keys(this.properties).length>0){p+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const d=this.properties[r];if(d){if(a){a=false}else{p+=","}p+=`${r}=${escapeProperty(d)}`}}}}p+=`${z}${escapeData(this.message)}`;return p}}function escapeData(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(p,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(p,a,r,d){if(d===undefined)d=r;Object.defineProperty(p,d,{enumerable:true,get:function(){return a[r]}})}:function(p,a,r,d){if(d===undefined)d=r;p[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(p,a){Object.defineProperty(p,"default",{enumerable:true,value:a})}:function(p,a){p["default"]=a});var b=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var a={};if(p!=null)for(var r in p)if(r!=="default"&&Object.hasOwnProperty.call(p,r))d(a,p,r);i(a,p);return a};var c=this&&this.__awaiter||function(p,a,r,d){function adopt(p){return p instanceof r?p:new r((function(a){a(p)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(p){try{step(d.next(p))}catch(p){i(p)}}function rejected(p){try{step(d["throw"](p))}catch(p){i(p)}}function step(p){p.done?r(p.value):adopt(p.value).then(fulfilled,rejected)}step((d=d.apply(p,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const M=r(7351);const z=r(717);const u=r(5278);const O=b(r(2037));const l=b(r(1017));const A=r(8041);var m;(function(p){p[p["Success"]=0]="Success";p[p["Failure"]=1]="Failure"})(m=a.ExitCode||(a.ExitCode={}));function exportVariable(p,a){const r=u.toCommandValue(a);process.env[p]=r;const d=process.env["GITHUB_ENV"]||"";if(d){return z.issueFileCommand("ENV",z.prepareKeyValueMessage(p,a))}M.issueCommand("set-env",{name:p},r)}a.exportVariable=exportVariable;function setSecret(p){M.issueCommand("add-mask",{},p)}a.setSecret=setSecret;function addPath(p){const a=process.env["GITHUB_PATH"]||"";if(a){z.issueFileCommand("PATH",p)}else{M.issueCommand("add-path",{},p)}process.env["PATH"]=`${p}${l.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(p,a){const r=process.env[`INPUT_${p.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${p}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(p,a){const r=getInput(p,a).split("\n").filter((p=>p!==""));if(a&&a.trimWhitespace===false){return r}return r.map((p=>p.trim()))}a.getMultilineInput=getMultilineInput;function getBooleanInput(p,a){const r=["true","True","TRUE"];const d=["false","False","FALSE"];const i=getInput(p,a);if(r.includes(i))return true;if(d.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${p}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a.getBooleanInput=getBooleanInput;function setOutput(p,a){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return z.issueFileCommand("OUTPUT",z.prepareKeyValueMessage(p,a))}process.stdout.write(O.EOL);M.issueCommand("set-output",{name:p},u.toCommandValue(a))}a.setOutput=setOutput;function setCommandEcho(p){M.issue("echo",p?"on":"off")}a.setCommandEcho=setCommandEcho;function setFailed(p){process.exitCode=m.Failure;error(p)}a.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}a.isDeLine truncated
|
||||
require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(p,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(p,a,r,d){if(d===undefined)d=r;Object.defineProperty(p,d,{enumerable:true,get:function(){return a[r]}})}:function(p,a,r,d){if(d===undefined)d=r;p[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(p,a){Object.defineProperty(p,"default",{enumerable:true,value:a})}:function(p,a){p["default"]=a});var b=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var a={};if(p!=null)for(var r in p)if(r!=="default"&&Object.hasOwnProperty.call(p,r))d(a,p,r);i(a,p);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const c=b(r(2037));const M=r(5278);function issueCommand(p,a,r){const d=new Command(p,a,r);process.stdout.write(d.toString()+c.EOL)}a.issueCommand=issueCommand;function issue(p,a=""){issueCommand(p,{},a)}a.issue=issue;const z="::";class Command{constructor(p,a,r){if(!p){p="missing.command"}this.command=p;this.properties=a;this.message=r}toString(){let p=z+this.command;if(this.properties&&Object.keys(this.properties).length>0){p+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const d=this.properties[r];if(d){if(a){a=false}else{p+=","}p+=`${r}=${escapeProperty(d)}`}}}}p+=`${z}${escapeData(this.message)}`;return p}}function escapeData(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(p,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(p,a,r,d){if(d===undefined)d=r;Object.defineProperty(p,d,{enumerable:true,get:function(){return a[r]}})}:function(p,a,r,d){if(d===undefined)d=r;p[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(p,a){Object.defineProperty(p,"default",{enumerable:true,value:a})}:function(p,a){p["default"]=a});var b=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var a={};if(p!=null)for(var r in p)if(r!=="default"&&Object.hasOwnProperty.call(p,r))d(a,p,r);i(a,p);return a};var c=this&&this.__awaiter||function(p,a,r,d){function adopt(p){return p instanceof r?p:new r((function(a){a(p)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(p){try{step(d.next(p))}catch(p){i(p)}}function rejected(p){try{step(d["throw"](p))}catch(p){i(p)}}function step(p){p.done?r(p.value):adopt(p.value).then(fulfilled,rejected)}step((d=d.apply(p,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const M=r(7351);const z=r(717);const u=r(5278);const O=b(r(2037));const l=b(r(1017));const A=r(8041);var m;(function(p){p[p["Success"]=0]="Success";p[p["Failure"]=1]="Failure"})(m=a.ExitCode||(a.ExitCode={}));function exportVariable(p,a){const r=u.toCommandValue(a);process.env[p]=r;const d=process.env["GITHUB_ENV"]||"";if(d){return z.issueFileCommand("ENV",z.prepareKeyValueMessage(p,a))}M.issueCommand("set-env",{name:p},r)}a.exportVariable=exportVariable;function setSecret(p){M.issueCommand("add-mask",{},p)}a.setSecret=setSecret;function addPath(p){const a=process.env["GITHUB_PATH"]||"";if(a){z.issueFileCommand("PATH",p)}else{M.issueCommand("add-path",{},p)}process.env["PATH"]=`${p}${l.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(p,a){const r=process.env[`INPUT_${p.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${p}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(p,a){const r=getInput(p,a).split("\n").filter((p=>p!==""));if(a&&a.trimWhitespace===false){return r}return r.map((p=>p.trim()))}a.getMultilineInput=getMultilineInput;function getBooleanInput(p,a){const r=["true","True","TRUE"];const d=["false","False","FALSE"];const i=getInput(p,a);if(r.includes(i))return true;if(d.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${p}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a.getBooleanInput=getBooleanInput;function setOutput(p,a){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return z.issueFileCommand("OUTPUT",z.prepareKeyValueMessage(p,a))}process.stdout.write(O.EOL);M.issueCommand("set-output",{name:p},u.toCommandValue(a))}a.setOutput=setOutput;function setCommandEcho(p){M.issue("echo",p?"on":"off")}a.setCommandEcho=setCommandEcho;function setFailed(p){process.exitCode=m.Failure;error(p)}a.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}a.isDeLine truncated
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
@@ -18,7 +18,7 @@ require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(
|
||||
//! momentjs.com
|
||||
(function(a,r){true?p.exports=r():0})(this,(function(){"use strict";var a;function hooks(){return a.apply(null,arguments)}function setHookCallback(p){a=p}function isArray(p){return p instanceof Array||Object.prototype.toString.call(p)==="[object Array]"}function isObject(p){return p!=null&&Object.prototype.toString.call(p)==="[object Object]"}function hasOwnProp(p,a){return Object.prototype.hasOwnProperty.call(p,a)}function isObjectEmpty(p){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(p).length===0}else{var a;for(a in p){if(hasOwnProp(p,a)){return false}}return true}}function isUndefined(p){return p===void 0}function isNumber(p){return typeof p==="number"||Object.prototype.toString.call(p)==="[object Number]"}function isDate(p){return p instanceof Date||Object.prototype.toString.call(p)==="[object Date]"}function map(p,a){var r=[],d,i=p.length;for(d=0;d<i;++d){r.push(a(p[d],d))}return r}function extend(p,a){for(var r in a){if(hasOwnProp(a,r)){p[r]=a[r]}}if(hasOwnProp(a,"toString")){p.toString=a.toString}if(hasOwnProp(a,"valueOf")){p.valueOf=a.valueOf}return p}function createUTC(p,a,r,d){return createLocalOrUTC(p,a,r,d,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(p){if(p._pf==null){p._pf=defaultParsingFlags()}return p._pf}var r;if(Array.prototype.some){r=Array.prototype.some}else{r=function(p){var a=Object(this),r=a.length>>>0,d;for(d=0;d<r;d++){if(d in a&&p.call(this,a[d],d,a)){return true}}return false}}function isValid(p){if(p._isValid==null){var a=getParsingFlags(p),d=r.call(a.parsedDateParts,(function(p){return p!=null})),i=!isNaN(p._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&d);if(p._strict){i=i&&a.charsLeftOver===0&&a.unusedTokens.length===0&&a.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(p)){p._isValid=i}else{return i}}return p._isValid}function createInvalid(p){var a=createUTC(NaN);if(p!=null){extend(getParsingFlags(a),p)}else{getParsingFlags(a).userInvalidated=true}return a}var d=hooks.momentProperties=[],i=false;function copyConfig(p,a){var r,i,b,c=d.length;if(!isUndefined(a._isAMomentObject)){p._isAMomentObject=a._isAMomentObject}if(!isUndefined(a._i)){p._i=a._i}if(!isUndefined(a._f)){p._f=a._f}if(!isUndefined(a._l)){p._l=a._l}if(!isUndefined(a._strict)){p._strict=a._strict}if(!isUndefined(a._tzm)){p._tzm=a._tzm}if(!isUndefined(a._isUTC)){p._isUTC=a._isUTC}if(!isUndefined(a._offset)){p._offset=a._offset}if(!isUndefined(a._pf)){p._pf=getParsingFlags(a)}if(!isUndefined(a._locale)){p._locale=a._locale}if(c>0){for(r=0;r<c;r++){i=d[r];b=a[i];if(!isUndefined(b)){p[i]=b}}}return p}function Moment(p){copyConfig(this,p);this._d=new Date(p._d!=null?p._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(i===false){i=true;hooks.updateOffset(this);i=false}}function isMoment(p){return p instanceof Moment||p!=null&&p._isAMomentObject!=null}function warn(p){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+p)}}function deprecate(p,a){var r=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,p)}if(r){var d=[],i,b,c,M=arguments.length;for(b=0;b<M;b++){i="";if(typeof arguments[b]==="object"){i+="\n["+b+"] ";for(c in arguments[0]){if(hasOwnProp(arguments[0],c)){i+=c+": "+arguments[0][c]+", "}}i=i.slice(0,-2)}else{i=arguments[b]}d.push(i)}warn(p+"\nArguments: "+Array.prototype.slice.call(d).join("")+"\n"+(new Error).stack);r=false}return a.apply(this,arguments)}),a)}var b={};function deprecateSimple(p,a){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(p,a)}if(!b[p]){warn(a);b[p]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(p){return typeof Function!=="undefined"&&p instanceof Function||Object.prototype.toString.call(p)==="[object Function]"}function set(p){var a,r;for(r in p){if(hasOwnProp(p,r)){a=p[r];if(isFunction(a)){this[r]=a}else{this["_"+r]=a}}}this._config=p;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(p,a){var r=extend({},p),d;for(d in a){if(hasOwnProp(a,d)){if(isObject(p[d])&&isObject(a[d])){r[d]={};extend(r[d],p[d]);extend(r[d],a[d])}else if(a[d]!=null){r[d]=a[d]}else{delete r[d]}}}for(d in p){if(hasOwnProp(p,d)&&!hasOwnProp(a,d)&&isObject(p[d])){r[d]=extend({},r[d])}}return r}function Locale(p){if(p!=null){this.set(p)}}var c;if(Object.keys){c=Object.keys}else{c=function(p){var a,r=[];for(a in p){if(hasOwnProp(p,a)){r.push(a)}}return r}}var M={sameDay:Line truncated
|
||||
//! moment.js
|
||||
hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=Ye;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=Ye;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},467:(p,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});function _interopDefault(p){return p&&typeof p==="object"&&"default"in p?p["default"]:p}var d=_interopDefault(r(2781));var i=_interopDefault(r(3685));var b=_interopDefault(r(7310));var c=_interopDefault(r(629));var M=_interopDefault(r(5687));var z=_interopDefault(r(9796));const u=d.Readable;const O=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const p=arguments[0];const a=arguments[1];const r=[];let d=0;if(p){const a=p;const i=Number(a.length);for(let p=0;p<i;p++){const i=a[p];let b;if(i instanceof Buffer){b=i}else if(ArrayBuffer.isView(i)){b=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}else if(i instanceof ArrayBuffer){b=Buffer.from(i)}else if(i instanceof Blob){b=i[O]}else{b=Buffer.from(typeof i==="string"?i:String(i))}d+=b.length;r.push(b)}}this[O]=Buffer.concat(r);let i=a&&a.type!==undefined&&String(a.type).toLowerCase();if(i&&!/[^\u0020-\u007E]/.test(i)){this[l]=i}}get size(){return this[O].length}get type(){return this[l]}text(){return Promise.resolve(this[O].toString())}arrayBuffer(){const p=this[O];const a=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return Promise.resolve(a)}stream(){const p=new u;p._read=function(){};p.push(this[O]);p.push(null);return p}toString(){return"[object Blob]"}slice(){const p=this.size;const a=arguments[0];const r=arguments[1];let d,i;if(a===undefined){d=0}else if(a<0){d=Math.max(p+a,0)}else{d=Math.min(a,p)}if(r===undefined){i=p}else if(r<0){i=Math.max(p+r,0)}else{i=Math.min(r,p)}const b=Math.max(i-d,0);const c=this[O];const M=c.slice(d,d+b);const z=new Blob([],{type:arguments[2]});z[O]=M;return z}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(p,a,r){Error.call(this,p);this.message=p;this.type=a;if(r){this.code=this.errno=r.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let A;try{A=r(2877).convert}catch(p){}const m=Symbol("Body internals");const q=d.PassThrough;function Body(p){var a=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let b=i===undefined?0:i;var c=r.timeout;let M=c===undefined?0:c;if(p==null){p=null}else if(isURLSearchParams(p)){p=Buffer.from(p.toString())}else if(isBlob(p));else if(Buffer.isBuffer(p));else if(Object.prototype.toString.call(p)==="[object ArrayBuffer]"){p=Buffer.from(p)}else if(ArrayBuffer.isView(p)){p=Buffer.from(p.buffer,p.byteOffset,p.byteLength)}else if(p instanceof d);else{p=Buffer.from(String(p))}this[m]={body:p,disturbed:false,error:null};this.size=b;this.timeout=M;if(p instanceof d){p.on("error",(function(p){const r=p.name==="AbortError"?p:new FetchError(`Invalid response body while trying to fetch ${a.url}: ${p.message}`,"system",p);a[m].error=r}))}}Body.prototype={get body(){return this[m].body},get bodyUsed(){return this[m].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(p){return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}))},blob(){let p=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(a){return Object.assign(new Blob([],{type:p.toLowerCase()}),{[O]:a})}))},json(){var p=this;return consumeBody.call(this).then((function(a){try{return JSON.parse(a.toString())}catch(a){return Body.Promise.reject(new FetchError(`invalid json response body at ${p.url} reason: ${a.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(p){return p.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var p=this;return consumeBody.call(this).then((function(a){return conLine truncated
|
||||
hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=Ye;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=Ye;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},467:(p,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});function _interopDefault(p){return p&&typeof p==="object"&&"default"in p?p["default"]:p}var d=_interopDefault(r(2781));var i=_interopDefault(r(3685));var b=_interopDefault(r(7310));var c=_interopDefault(r(8665));var M=_interopDefault(r(5687));var z=_interopDefault(r(9796));const u=d.Readable;const O=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const p=arguments[0];const a=arguments[1];const r=[];let d=0;if(p){const a=p;const i=Number(a.length);for(let p=0;p<i;p++){const i=a[p];let b;if(i instanceof Buffer){b=i}else if(ArrayBuffer.isView(i)){b=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}else if(i instanceof ArrayBuffer){b=Buffer.from(i)}else if(i instanceof Blob){b=i[O]}else{b=Buffer.from(typeof i==="string"?i:String(i))}d+=b.length;r.push(b)}}this[O]=Buffer.concat(r);let i=a&&a.type!==undefined&&String(a.type).toLowerCase();if(i&&!/[^\u0020-\u007E]/.test(i)){this[l]=i}}get size(){return this[O].length}get type(){return this[l]}text(){return Promise.resolve(this[O].toString())}arrayBuffer(){const p=this[O];const a=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return Promise.resolve(a)}stream(){const p=new u;p._read=function(){};p.push(this[O]);p.push(null);return p}toString(){return"[object Blob]"}slice(){const p=this.size;const a=arguments[0];const r=arguments[1];let d,i;if(a===undefined){d=0}else if(a<0){d=Math.max(p+a,0)}else{d=Math.min(a,p)}if(r===undefined){i=p}else if(r<0){i=Math.max(p+r,0)}else{i=Math.min(r,p)}const b=Math.max(i-d,0);const c=this[O];const M=c.slice(d,d+b);const z=new Blob([],{type:arguments[2]});z[O]=M;return z}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(p,a,r){Error.call(this,p);this.message=p;this.type=a;if(r){this.code=this.errno=r.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let A;try{A=r(2877).convert}catch(p){}const m=Symbol("Body internals");const q=d.PassThrough;function Body(p){var a=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let b=i===undefined?0:i;var c=r.timeout;let M=c===undefined?0:c;if(p==null){p=null}else if(isURLSearchParams(p)){p=Buffer.from(p.toString())}else if(isBlob(p));else if(Buffer.isBuffer(p));else if(Object.prototype.toString.call(p)==="[object ArrayBuffer]"){p=Buffer.from(p)}else if(ArrayBuffer.isView(p)){p=Buffer.from(p.buffer,p.byteOffset,p.byteLength)}else if(p instanceof d);else{p=Buffer.from(String(p))}this[m]={body:p,disturbed:false,error:null};this.size=b;this.timeout=M;if(p instanceof d){p.on("error",(function(p){const r=p.name==="AbortError"?p:new FetchError(`Invalid response body while trying to fetch ${a.url}: ${p.message}`,"system",p);a[m].error=r}))}}Body.prototype={get body(){return this[m].body},get bodyUsed(){return this[m].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(p){return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}))},blob(){let p=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(a){return Object.assign(new Blob([],{type:p.toLowerCase()}),{[O]:a})}))},json(){var p=this;return consumeBody.call(this).then((function(a){try{return JSON.parse(a.toString())}catch(a){return Body.Promise.reject(new FetchError(`invalid json response body at ${p.url} reason: ${a.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(p){return p.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var p=this;return consumeBody.call(this).then((function(a){return coLine truncated
|
||||
/*!
|
||||
* Tmp
|
||||
*
|
||||
@@ -26,7 +26,7 @@ hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=Ye;hooks.min=min;ho
|
||||
*
|
||||
* MIT Licensed
|
||||
*/
|
||||
const d=r(7147);const i=r(2037);const b=r(1017);const c=r(6113);const M={fs:d.constants,os:i.constants};const z=r(4959);const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",O=/XXXXXX/,l=3,A=(M.O_CREAT||M.fs.O_CREAT)|(M.O_EXCL||M.fs.O_EXCL)|(M.O_RDWR||M.fs.O_RDWR),m=i.platform()==="win32",q=M.EBADF||M.os.errno.EBADF,h=M.ENOENT||M.os.errno.ENOENT,W=448,v=384,g="exit",R=[],L=d.rmdirSync.bind(d),_=z.sync;let N=false;function tmpName(p,a){const r=_parseArguments(p,a),i=r[0],b=r[1];try{_assertAndSanitizeOptions(i)}catch(p){return b(p)}let c=i.tries;(function _getUniqueName(){try{const p=_generateTmpName(i);d.stat(p,(function(a){if(!a){if(c-- >0)return _getUniqueName();return b(new Error("Could not get a unique tmp filename, max tries reached "+p))}b(null,p)}))}catch(p){b(p)}})()}function tmpNameSync(p){const a=_parseArguments(p),r=a[0];_assertAndSanitizeOptions(r);let i=r.tries;do{const p=_generateTmpName(r);try{d.statSync(p)}catch(a){return p}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(p,a){const r=_parseArguments(p,a),i=r[0],b=r[1];tmpName(i,(function _tmpNameCreated(p,a){if(p)return b(p);d.open(a,A,i.mode||v,(function _fileCreated(p,r){if(p)return b(p);if(i.discardDescriptor){return d.close(r,(function _discardCallback(p){return b(p,a,undefined,_prepareTmpFileRemoveCallback(a,-1,i,false))}))}else{const p=i.discardDescriptor||i.detachDescriptor;b(null,a,r,_prepareTmpFileRemoveCallback(a,p?-1:r,i,false))}}))}))}function fileSync(p){const a=_parseArguments(p),r=a[0];const i=r.discardDescriptor||r.detachDescriptor;const b=tmpNameSync(r);var c=d.openSync(b,A,r.mode||v);if(r.discardDescriptor){d.closeSync(c);c=undefined}return{name:b,fd:c,removeCallback:_prepareTmpFileRemoveCallback(b,i?-1:c,r,true)}}function dir(p,a){const r=_parseArguments(p,a),i=r[0],b=r[1];tmpName(i,(function _tmpNameCreated(p,a){if(p)return b(p);d.mkdir(a,i.mode||W,(function _dirCreated(p){if(p)return b(p);b(null,a,_prepareTmpDirRemoveCallback(a,i,false))}))}))}function dirSync(p){const a=_parseArguments(p),r=a[0];const i=tmpNameSync(r);d.mkdirSync(i,r.mode||W);return{name:i,removeCallback:_prepareTmpDirRemoveCallback(i,r,true)}}function _removeFileAsync(p,a){const _handler=function(p){if(p&&!_isENOENT(p)){return a(p)}a()};if(0<=p[0])d.close(p[0],(function(){d.unlink(p[1],_handler)}));else d.unlink(p[1],_handler)}function _removeFileSync(p){let a=null;try{if(0<=p[0])d.closeSync(p[0])}catch(p){if(!_isEBADF(p)&&!_isENOENT(p))throw p}finally{try{d.unlinkSync(p[1])}catch(p){if(!_isENOENT(p))a=p}}if(a!==null){throw a}}function _prepareTmpFileRemoveCallback(p,a,r,d){const i=_prepareRemoveCallback(_removeFileSync,[a,p],d);const b=_prepareRemoveCallback(_removeFileAsync,[a,p],d,i);if(!r.keep)R.unshift(i);return d?i:b}function _prepareTmpDirRemoveCallback(p,a,r){const i=a.unsafeCleanup?z:d.rmdir.bind(d);const b=a.unsafeCleanup?_:L;const c=_prepareRemoveCallback(b,p,r);const M=_prepareRemoveCallback(i,p,r,c);if(!a.keep)R.unshift(c);return r?c:M}function _prepareRemoveCallback(p,a,r,d){let i=false;return function _cleanupCallback(b){if(!i){const c=d||_cleanupCallback;const M=R.indexOf(c);if(M>=0)R.splice(M,1);i=true;if(r||p===L||p===_){return p(a)}else{return p(a,b||function(){})}}}}function _garbageCollector(){if(!N)return;while(R.length){try{R[0]()}catch(p){}}}function _randomChars(p){let a=[],r=null;try{r=c.randomBytes(p)}catch(a){r=c.pseudoRandomBytes(p)}for(var d=0;d<p;d++){a.push(u[r[d]%u.length])}return a.join("")}function _isBlank(p){return p===null||_isUndefined(p)||!p.trim()}function _isUndefined(p){return typeof p==="undefined"}function _parseArguments(p,a){if(typeof p==="function"){return[{},p]}if(_isUndefined(p)){return[{},a]}const r={};for(const a of Object.getOwnPropertyNames(p)){r[a]=p[a]}return[r,a]}function _generateTmpName(p){const a=p.tmpdir;if(!_isUndefined(p.name))return b.join(a,p.dir,p.name);if(!_isUndefined(p.template))return b.join(a,p.dir,p.template).replace(O,_randomChars(6));const r=[p.prefix?p.prefix:"tmp","-",process.pid,"-",_randomChars(12),p.postfix?"-"+p.postfix:""].join("");return b.join(a,p.dir,r)}function _assertAndSanitizeOptions(p){p.tmpdir=_getTmpDir(p);const a=p.tmpdir;if(!_isUndefined(p.name))_assertIsRelative(p.name,"name",a);if(!_isUndefined(p.dir))_assertIsRelative(p.dir,"dir",a);if(!_isUndefined(p.template)){_assertIsRelative(p.template,"template",a);if(!p.template.match(O))throw new Error(`Invalid template, found "${p.template}".`)}if(!_isUndefined(p.tries)&&isNaN(p.tries)||p.tries<0)throw new Error(`Invalid tries, found "${p.tries}".`);p.tries=_isUndefined(p.name)?p.tries||l:1;p.keep=!!p.keep;p.detachDescriptor=!!p.detachDescriptor;p.discardDescriptor=!!p.discardDescriptor;p.unsafeCleanup=!!p.unsafeCleanup;p.dir=_isUndefined(p.dir)?"":b.relative(a,_resolvePath(p.dir,a));p.template=_isUndefined(p.template)?undefined:b.relative(a,_resolvePath(p.template,a));p.template=_isBlank(p.template)?undefined:b.relative(p.dir,p.template);p.naLine truncated
|
||||
const d=r(7147);const i=r(2037);const b=r(1017);const c=r(6113);const M={fs:d.constants,os:i.constants};const z=r(4959);const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",O=/XXXXXX/,l=3,A=(M.O_CREAT||M.fs.O_CREAT)|(M.O_EXCL||M.fs.O_EXCL)|(M.O_RDWR||M.fs.O_RDWR),m=i.platform()==="win32",q=M.EBADF||M.os.errno.EBADF,h=M.ENOENT||M.os.errno.ENOENT,W=448,v=384,g="exit",R=[],L=d.rmdirSync.bind(d),_=z.sync;let N=false;function tmpName(p,a){const r=_parseArguments(p,a),i=r[0],b=r[1];try{_assertAndSanitizeOptions(i)}catch(p){return b(p)}let c=i.tries;(function _getUniqueName(){try{const p=_generateTmpName(i);d.stat(p,(function(a){if(!a){if(c-- >0)return _getUniqueName();return b(new Error("Could not get a unique tmp filename, max tries reached "+p))}b(null,p)}))}catch(p){b(p)}})()}function tmpNameSync(p){const a=_parseArguments(p),r=a[0];_assertAndSanitizeOptions(r);let i=r.tries;do{const p=_generateTmpName(r);try{d.statSync(p)}catch(a){return p}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(p,a){const r=_parseArguments(p,a),i=r[0],b=r[1];tmpName(i,(function _tmpNameCreated(p,a){if(p)return b(p);d.open(a,A,i.mode||v,(function _fileCreated(p,r){if(p)return b(p);if(i.discardDescriptor){return d.close(r,(function _discardCallback(p){return b(p,a,undefined,_prepareTmpFileRemoveCallback(a,-1,i,false))}))}else{const p=i.discardDescriptor||i.detachDescriptor;b(null,a,r,_prepareTmpFileRemoveCallback(a,p?-1:r,i,false))}}))}))}function fileSync(p){const a=_parseArguments(p),r=a[0];const i=r.discardDescriptor||r.detachDescriptor;const b=tmpNameSync(r);var c=d.openSync(b,A,r.mode||v);if(r.discardDescriptor){d.closeSync(c);c=undefined}return{name:b,fd:c,removeCallback:_prepareTmpFileRemoveCallback(b,i?-1:c,r,true)}}function dir(p,a){const r=_parseArguments(p,a),i=r[0],b=r[1];tmpName(i,(function _tmpNameCreated(p,a){if(p)return b(p);d.mkdir(a,i.mode||W,(function _dirCreated(p){if(p)return b(p);b(null,a,_prepareTmpDirRemoveCallback(a,i,false))}))}))}function dirSync(p){const a=_parseArguments(p),r=a[0];const i=tmpNameSync(r);d.mkdirSync(i,r.mode||W);return{name:i,removeCallback:_prepareTmpDirRemoveCallback(i,r,true)}}function _removeFileAsync(p,a){const _handler=function(p){if(p&&!_isENOENT(p)){return a(p)}a()};if(0<=p[0])d.close(p[0],(function(){d.unlink(p[1],_handler)}));else d.unlink(p[1],_handler)}function _removeFileSync(p){let a=null;try{if(0<=p[0])d.closeSync(p[0])}catch(p){if(!_isEBADF(p)&&!_isENOENT(p))throw p}finally{try{d.unlinkSync(p[1])}catch(p){if(!_isENOENT(p))a=p}}if(a!==null){throw a}}function _prepareTmpFileRemoveCallback(p,a,r,d){const i=_prepareRemoveCallback(_removeFileSync,[a,p],d);const b=_prepareRemoveCallback(_removeFileAsync,[a,p],d,i);if(!r.keep)R.unshift(i);return d?i:b}function _prepareTmpDirRemoveCallback(p,a,r){const i=a.unsafeCleanup?z:d.rmdir.bind(d);const b=a.unsafeCleanup?_:L;const c=_prepareRemoveCallback(b,p,r);const M=_prepareRemoveCallback(i,p,r,c);if(!a.keep)R.unshift(c);return r?c:M}function _prepareRemoveCallback(p,a,r,d){let i=false;return function _cleanupCallback(b){if(!i){const c=d||_cleanupCallback;const M=R.indexOf(c);if(M>=0)R.splice(M,1);i=true;if(r||p===L||p===_){return p(a)}else{return p(a,b||function(){})}}}}function _garbageCollector(){if(!N)return;while(R.length){try{R[0]()}catch(p){}}}function _randomChars(p){let a=[],r=null;try{r=c.randomBytes(p)}catch(a){r=c.pseudoRandomBytes(p)}for(var d=0;d<p;d++){a.push(u[r[d]%u.length])}return a.join("")}function _isBlank(p){return p===null||_isUndefined(p)||!p.trim()}function _isUndefined(p){return typeof p==="undefined"}function _parseArguments(p,a){if(typeof p==="function"){return[{},p]}if(_isUndefined(p)){return[{},a]}const r={};for(const a of Object.getOwnPropertyNames(p)){r[a]=p[a]}return[r,a]}function _generateTmpName(p){const a=p.tmpdir;if(!_isUndefined(p.name))return b.join(a,p.dir,p.name);if(!_isUndefined(p.template))return b.join(a,p.dir,p.template).replace(O,_randomChars(6));const r=[p.prefix?p.prefix:"tmp","-",process.pid,"-",_randomChars(12),p.postfix?"-"+p.postfix:""].join("");return b.join(a,p.dir,r)}function _assertAndSanitizeOptions(p){p.tmpdir=_getTmpDir(p);const a=p.tmpdir;if(!_isUndefined(p.name))_assertIsRelative(p.name,"name",a);if(!_isUndefined(p.dir))_assertIsRelative(p.dir,"dir",a);if(!_isUndefined(p.template)){_assertIsRelative(p.template,"template",a);if(!p.template.match(O))throw new Error(`Invalid template, found "${p.template}".`)}if(!_isUndefined(p.tries)&&isNaN(p.tries)||p.tries<0)throw new Error(`Invalid tries, found "${p.tries}".`);p.tries=_isUndefined(p.name)?p.tries||l:1;p.keep=!!p.keep;p.detachDescriptor=!!p.detachDescriptor;p.discardDescriptor=!!p.discardDescriptor;p.unsafeCleanup=!!p.unsafeCleanup;p.dir=_isUndefined(p.dir)?"":b.relative(a,_resolvePath(p.dir,a));p.template=_isUndefined(p.template)?undefined:b.relative(a,_resolvePath(p.template,a));p.template=_isBlank(p.template)?undefined:b.relative(p.dir,p.template);p.naLine truncated
|
||||
/*!
|
||||
* XRegExp.build 4.4.1
|
||||
* <xregexp.com>
|
||||
@@ -70,5 +70,5 @@ const d=r(7147);const i=r(2037);const b=r(1017);const c=r(6113);const M={fs:d.co
|
||||
* XRegExp 4.4.1
|
||||
* <xregexp.com>
|
||||
* Steven Levithan (c) 2007-present MIT License
|
||||
*/var L="xregexp";var _={astral:false,namespacing:false};var N={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var y={};var w={};var E={};var T=[];var B="default";var S="class";var X={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var k=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var P=N.exec.call(/()??/,"")[1]===undefined;var C=(0,R["default"])(/x/)!==undefined;var x={},D=x.toString;function hasNativeFlag(p){var a=true;try{new RegExp("",p);if(p==="y"){var r=function(){return"gy"}();var d=".a".replace(new RegExp("a",r),".")==="..";if(d){a=false}}}catch(p){a=false}return a}var I=hasNativeFlag("u");var G=hasNativeFlag("y");var j={g:true,i:true,m:true,u:I,y:G};function augment(p,a,r,d,i){var b;p[L]={captureNames:a};if(i){return p}if(p.__proto__){p.__proto__=XRegExp.prototype}else{for(var c in XRegExp.prototype){p[c]=XRegExp.prototype[c]}}p[L].source=r;p[L].flags=d?(0,g["default"])(b=d.split("")).call(b).join(""):d;return p}function clipDuplicates(p){return N.replace.call(p,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(p,a){var r;if(!XRegExp.isRegExp(p)){throw new TypeError("Type RegExp expected")}var d=p[L]||{};var i=getNativeFlags(p);var b="";var c="";var M=null;var z=null;a=a||{};if(a.removeG){c+="g"}if(a.removeY){c+="y"}if(c){i=N.replace.call(i,new RegExp("[".concat(c,"]+"),"g"),"")}if(a.addG){b+="g"}if(a.addY){b+="y"}if(b){i=clipDuplicates(i+b)}if(!a.isInternalOnly){if(d.source!==undefined){M=d.source}if((0,R["default"])(d)!=null){z=b?clipDuplicates((0,R["default"])(d)+b):(0,R["default"])(d)}}p=augment(new RegExp(a.source||p.source,i),hasNamedCapture(p)?(0,v["default"])(r=d.captureNames).call(r,0):null,M,z,a.isInternalOnly);return p}function dec(p){return(0,W["default"])(p,16)}function getContextualTokenSeparator(p,a,r){if(p.input[p.index-1]==="("||p.input[p.index+p[0].length]===")"||p.input[p.index-1]==="|"||p.input[p.index+p[0].length]==="|"||p.index<1||p.index+p[0].length>=p.input.length||N.test.call(/^\(\?[:=!]/,p.input.substr(p.index-3,3))||isQuantifierNext(p.input,p.index+p[0].length,r)){return""}return"(?:)"}function getNativeFlags(p){return C?(0,R["default"])(p):N.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(p))[1]}function hasNamedCapture(p){return!!(p[L]&&p[L].captureNames)}function hex(p){return(0,W["default"])(p,10).toString(16)}function isQuantifierNext(p,a,r){var d="\\(\\?#[^)]*\\)";var i="#[^#\\n]*";var b="[?*+]|{\\d+(?:,\\d*)?}";return N.test.call((0,h["default"])(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,v["default"])(p).call(p,a))}function isType(p,a){return D.call(p)==="[object ".concat(a,"]")}function pad4(p){while(p.length<4){p="0".concat(p)}return p}function prepareFlags(p,a){if(clipDuplicates(a)!==a){throw new SyntaxError("Invalid duplicate regex flag ".concat(a))}p=N.replace.call(p,/^\(\?([\w$]+)\)/,(function(p,r){if(N.test.call(/[gy]/,r)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(p))}a=clipDuplicates(a+r);return""}));var r=_createForOfIteratorHelper(a),d;try{for(r.s();!(d=r.n()).done;){var i=d.value;if(!j[i]){throw new SyntaxError("Unknown regex flag ".concat(i))}}}catch(p){r.e(p)}finally{r.f()}return{pattern:p,flags:a}}function prepareOptions(p){var a={};if(isType(p,"String")){(0,q["default"])(XRegExp).call(XRegExp,p,/[^\s,]+/,(function(p){a[p]=true}));return a}return p}function registerFlag(p){if(!/^[\w$]$/.test(p)){throw new Error("Flag must be a single character A-Za-z0-9_$")}j[p]=true}function runTokens(p,a,r,d,i){var b=T.length;var c=p[r];var M=null;var z;var u;while(b--){u=T[b];if(u.leadChar&&u.leadChar!==c||u.scope!==d&&u.scope!=="all"||u.flag&&!(0,h["default"])(a).call(a,u.flag)){continue}z=XRegExp.exec(p,u.regex,r,"sticky");if(z){M={matchLength:z[0].length,output:u.handler.call(i,z,d,a),reparse:u.reparse};break}}return M}function setAstral(p){_.astral=p}function setNamespacing(p){_.namespacing=p}function toObject(p){if(p==null){throw new TypeError("Cannot convert null or undefined to object")}return p}function XRegExp(p,a){if(XRegExp.isRegExp(p)){if(a!==undefined){throw new TypeError("Cannot supply flags when copying a RegExp")}return copyRegex(p)}p=p===undefined?"":String(p);a=a===undefined?"":String(a);if(XRegExp.isInstalled("astral")&&!(0,h["default"])(a).call(a,"A")){a+="A"}if(!E[p]){E[p]={}}if(!E[p][a]){var r={hasNamedCapture:false,captureNames:[]};var d=B;var i="";var b=0;var c;var M=prepareFlags(p,a);var z=M.pattern;var u=(0,R["default"])(M);while(b<z.length){do{c=runTokens(z,u,b,d,r);if(c&&c.reparse){z=(0,v["default"])(z).call(z,0,b)+c.output+(0,v["default"])(z).call(z,b+c.matchLength)}}while(c&&c.reparsLine truncated
|
||||
*/var L="xregexp";var _={astral:false,namespacing:false};var N={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var y={};var w={};var E={};var T=[];var B="default";var S="class";var X={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var k=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var P=N.exec.call(/()??/,"")[1]===undefined;var C=(0,R["default"])(/x/)!==undefined;var x={},D=x.toString;function hasNativeFlag(p){var a=true;try{new RegExp("",p);if(p==="y"){var r=function(){return"gy"}();var d=".a".replace(new RegExp("a",r),".")==="..";if(d){a=false}}}catch(p){a=false}return a}var I=hasNativeFlag("u");var G=hasNativeFlag("y");var j={g:true,i:true,m:true,u:I,y:G};function augment(p,a,r,d,i){var b;p[L]={captureNames:a};if(i){return p}if(p.__proto__){p.__proto__=XRegExp.prototype}else{for(var c in XRegExp.prototype){p[c]=XRegExp.prototype[c]}}p[L].source=r;p[L].flags=d?(0,g["default"])(b=d.split("")).call(b).join(""):d;return p}function clipDuplicates(p){return N.replace.call(p,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(p,a){var r;if(!XRegExp.isRegExp(p)){throw new TypeError("Type RegExp expected")}var d=p[L]||{};var i=getNativeFlags(p);var b="";var c="";var M=null;var z=null;a=a||{};if(a.removeG){c+="g"}if(a.removeY){c+="y"}if(c){i=N.replace.call(i,new RegExp("[".concat(c,"]+"),"g"),"")}if(a.addG){b+="g"}if(a.addY){b+="y"}if(b){i=clipDuplicates(i+b)}if(!a.isInternalOnly){if(d.source!==undefined){M=d.source}if((0,R["default"])(d)!=null){z=b?clipDuplicates((0,R["default"])(d)+b):(0,R["default"])(d)}}p=augment(new RegExp(a.source||p.source,i),hasNamedCapture(p)?(0,v["default"])(r=d.captureNames).call(r,0):null,M,z,a.isInternalOnly);return p}function dec(p){return(0,W["default"])(p,16)}function getContextualTokenSeparator(p,a,r){if(p.input[p.index-1]==="("||p.input[p.index+p[0].length]===")"||p.input[p.index-1]==="|"||p.input[p.index+p[0].length]==="|"||p.index<1||p.index+p[0].length>=p.input.length||N.test.call(/^\(\?[:=!]/,p.input.substr(p.index-3,3))||isQuantifierNext(p.input,p.index+p[0].length,r)){return""}return"(?:)"}function getNativeFlags(p){return C?(0,R["default"])(p):N.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(p))[1]}function hasNamedCapture(p){return!!(p[L]&&p[L].captureNames)}function hex(p){return(0,W["default"])(p,10).toString(16)}function isQuantifierNext(p,a,r){var d="\\(\\?#[^)]*\\)";var i="#[^#\\n]*";var b="[?*+]|{\\d+(?:,\\d*)?}";return N.test.call((0,h["default"])(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,v["default"])(p).call(p,a))}function isType(p,a){return D.call(p)==="[object ".concat(a,"]")}function pad4(p){while(p.length<4){p="0".concat(p)}return p}function prepareFlags(p,a){if(clipDuplicates(a)!==a){throw new SyntaxError("Invalid duplicate regex flag ".concat(a))}p=N.replace.call(p,/^\(\?([\w$]+)\)/,(function(p,r){if(N.test.call(/[gy]/,r)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(p))}a=clipDuplicates(a+r);return""}));var r=_createForOfIteratorHelper(a),d;try{for(r.s();!(d=r.n()).done;){var i=d.value;if(!j[i]){throw new SyntaxError("Unknown regex flag ".concat(i))}}}catch(p){r.e(p)}finally{r.f()}return{pattern:p,flags:a}}function prepareOptions(p){var a={};if(isType(p,"String")){(0,q["default"])(XRegExp).call(XRegExp,p,/[^\s,]+/,(function(p){a[p]=true}));return a}return p}function registerFlag(p){if(!/^[\w$]$/.test(p)){throw new Error("Flag must be a single character A-Za-z0-9_$")}j[p]=true}function runTokens(p,a,r,d,i){var b=T.length;var c=p[r];var M=null;var z;var u;while(b--){u=T[b];if(u.leadChar&&u.leadChar!==c||u.scope!==d&&u.scope!=="all"||u.flag&&!(0,h["default"])(a).call(a,u.flag)){continue}z=XRegExp.exec(p,u.regex,r,"sticky");if(z){M={matchLength:z[0].length,output:u.handler.call(i,z,d,a),reparse:u.reparse};break}}return M}function setAstral(p){_.astral=p}function setNamespacing(p){_.namespacing=p}function toObject(p){if(p==null){throw new TypeError("Cannot convert null or undefined to object")}return p}function XRegExp(p,a){if(XRegExp.isRegExp(p)){if(a!==undefined){throw new TypeError("Cannot supply flags when copying a RegExp")}return copyRegex(p)}p=p===undefined?"":String(p);a=a===undefined?"":String(a);if(XRegExp.isInstalled("astral")&&!(0,h["default"])(a).call(a,"A")){a+="A"}if(!E[p]){E[p]={}}if(!E[p][a]){var r={hasNamedCapture:false,captureNames:[]};var d=B;var i="";var b=0;var c;var M=prepareFlags(p,a);var z=M.pattern;var u=(0,R["default"])(M);while(b<z.length){do{c=runTokens(z,u,b,d,r);if(c&&c.reparse){z=(0,v["default"])(z).call(z,0,b)+c.output+(0,v["default"])(z).call(z,b+c.matchLength)}}while(c&&c.reparsLine truncated
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"sources":["../webpack:/docker-metadata-action/node_modules/@actions/core/lib/command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/core.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/file-command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/oidc-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/path-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/summary.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/exec/lib/exec.js","../webpack:/docker-metadata-action/node_modules/@actions/exec/lib/toolrunner.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/context.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/github.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/internal/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/auth.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/index.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/proxy.js","../webpack:/docker-metadata-action/node_modules/@actions/io/lib/io-util.js","../webpack:/docker-metadata-action/node_modules/@actions/io/lib/io.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/lib/manifest.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/lib/retry-helper.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/lib/tool-cache.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/semver/semver.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/uuid/v4.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/create.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/unsuLine truncated
|
||||
{"version":3,"sources":["../webpack:/docker-metadata-action/node_modules/@actions/core/lib/command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/core.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/file-command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/oidc-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/path-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/summary.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/exec/lib/exec.js","../webpack:/docker-metadata-action/node_modules/@actions/exec/lib/toolrunner.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/context.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/github.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/internal/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/auth.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/index.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/proxy.js","../webpack:/docker-metadata-action/node_modules/@actions/io/lib/io-util.js","../webpack:/docker-metadata-action/node_modules/@actions/io/lib/io.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/lib/manifest.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/lib/retry-helper.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/lib/tool-cache.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/semver/semver.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/uuid/v4.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/create.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/unsuLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
(()=>{var e={650:e=>{var r=Object.prototype.toString;var n=typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return r.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,r,t){r>>>=0;var o=e.byteLength-r;if(o<0){throw new RangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function fromString(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,r):new Buffer(e,r)}function bufferFrom(e,r,t){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,r,t)}if(typeof e==="string"){return fromString(e,r)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},284:(e,r,n)=>{e=n.nmd(e);var t=n(596).SourceMapConsumer;var o=n(17);var i;try{i=n(147);if(!i.existsSync||!i.readFileSync){i=null}}catch(e){}var a=n(650);function dynamicRequire(e,r){return e.require(r)}var u=false;var s=false;var l=false;var c="auto";var p={};var f={};var g=/^data:application\/json[^,]+base64,/;var h=[];var d=[];function isInBrowser(){if(c==="browser")return true;if(c==="node")return false;return typeof window!=="undefined"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function hasGlobalProcessEventEmitter(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function globalProcessVersion(){if(typeof process==="object"&&process!==null){return process.version}else{return""}}function globalProcessStderr(){if(typeof process==="object"&&process!==null){return process.stderr}}function globalProcessExit(e){if(typeof process==="object"&&process!==null&&typeof process.exit==="function"){return process.exit(e)}}function handlerExec(e){return function(r){for(var n=0;n<e.length;n++){var t=e[n](r);if(t){return t}}return null}}var m=handlerExec(h);h.push((function(e){e=e.trim();if(/^file:/.test(e)){e=e.replace(/file:\/\/\/(\w:)?/,(function(e,r){return r?"":"/"}))}if(e in p){return p[e]}var r="";try{if(!i){var n=new XMLHttpRequest;n.open("GET",e,false);n.send(null);if(n.readyState===4&&n.status===200){r=n.responseText}}else if(i.existsSync(e)){r=i.readFileSync(e,"utf8")}}catch(e){}return p[e]=r}));function supportRelativeURL(e,r){if(!e)return r;var n=o.dirname(e);var t=/^\w+:\/\/[^\/]*/.exec(n);var i=t?t[0]:"";var a=n.slice(i.length);if(i&&/^\/\w\:/.test(a)){i+="/";return i+o.resolve(n.slice(i.length),r).replace(/\\/g,"/")}return i+o.resolve(n.slice(i.length),r)}function retrieveSourceMapURL(e){var r;if(isInBrowser()){try{var n=new XMLHttpRequest;n.open("GET",e,false);n.send(null);r=n.readyState===4?n.responseText:null;var t=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(t){return t}}catch(e){}}r=m(e);var o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;var i,a;while(a=o.exec(r))i=a;if(!i)return null;return i[1]}var v=handlerExec(d);d.push((function(e){var r=retrieveSourceMapURL(e);if(!r)return null;var n;if(g.test(r)){var t=r.slice(r.indexOf(",")+1);n=a(t,"base64").toString();r=e}else{r=supportRelativeURL(e,r);n=m(r)}if(!n){return null}return{url:r,map:n}}));function mapSourcePosition(e){var r=f[e.source];if(!r){var n=v(e.source);if(n){r=f[e.source]={url:n.url,map:new t(n.map)};if(r.map.sourcesContent){r.map.sources.forEach((function(e,n){var t=r.map.sourcesContent[n];if(t){var o=supportRelativeURL(r.url,e);p[o]=t}}))}}else{r=f[e.source]={url:null,map:null}}}if(r&&r.map&&typeof r.map.originalPositionFor==="function"){var o=r.map.originalPositionFor(e);if(o.source!==null){o.source=supportRelativeURL(r.url,o.source);return o}}return e}function mapEvalOrigin(e){var r=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(r){var n=mapSourcePosition({source:r[2],line:+r[3],column:r[4]-1});return"eval at "+r[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}r=/^eval at ([^(]+) \((.+)\)$/.exec(e);if(r){return"eval at "+r[1]+" ("+mapEvalOrigin(r[2])+")"}return e}function CallSiteToString(){var e;var r="";if(this.isNative()){r="native"}else{e=this.getScriptNameOrSourceURL();if(!e&&this.isEval()){r=this.getEvalOrigin();r+=", "}if(e){r+=e}else{r+="<anonymous>"}var n=this.getLineNumber();if(n!=null){r+=":"+n;var t=this.getColumnNumber();if(t){r+=":"+t}}}var o="";var i=this.getFunctionName();var a=true;var u=this.isConstructor();var s=!(this.isToplevel()||u);if(s){var l=this.getTypeName();if(l==="[object Object]"){l="null"}var c=this.getMethodName();if(i){if(l&&i.indexOf(l)!=0){o+=l+"."}o+=i;if(c&&i.indexOf("."+c)!=i.length-c.length-1){o+=" [as "+c+"]"}}else{o+=l+"."+(c||"<anonymous>")}}else if(u){o+="new "+(i||"<anonymous>")}else if(i){o+=i}elLine truncated
|
||||
(()=>{var e={650:e=>{var r=Object.prototype.toString;var n=typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return r.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,r,t){r>>>=0;var o=e.byteLength-r;if(o<0){throw new RangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function fromString(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,r):new Buffer(e,r)}function bufferFrom(e,r,t){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,r,t)}if(typeof e==="string"){return fromString(e,r)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},274:(e,r,n)=>{var t=n(339);var o=Object.prototype.hasOwnProperty;var i=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=i?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,r){var n=new ArraySet;for(var t=0,o=e.length;t<o;t++){n.add(e[t],r)}return n};ArraySet.prototype.size=function ArraySet_size(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(e,r){var n=i?e:t.toSetString(e);var a=i?this.has(e):o.call(this._set,n);var u=this._array.length;if(!a||r){this._array.push(e)}if(!a){if(i){this._set.set(e,u)}else{this._set[n]=u}}};ArraySet.prototype.has=function ArraySet_has(e){if(i){return this._set.has(e)}else{var r=t.toSetString(e);return o.call(this._set,r)}};ArraySet.prototype.indexOf=function ArraySet_indexOf(e){if(i){var r=this._set.get(e);if(r>=0){return r}}else{var n=t.toSetString(e);if(o.call(this._set,n)){return this._set[n]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e<this._array.length){return this._array[e]}throw new Error("No element indexed by "+e)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};r.I=ArraySet},449:(e,r,n)=>{var t=n(190);var o=5;var i=1<<o;var a=i-1;var u=i;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var r=(e&1)===1;var n=e>>1;return r?-n:n}r.encode=function base64VLQ_encode(e){var r="";var n;var i=toVLQSigned(e);do{n=i&a;i>>>=o;if(i>0){n|=u}r+=t.encode(n)}while(i>0);return r};r.decode=function base64VLQ_decode(e,r,n){var i=e.length;var s=0;var l=0;var c,p;do{if(r>=i){throw new Error("Expected more digits in base 64 VLQ value.")}p=t.decode(e.charCodeAt(r++));if(p===-1){throw new Error("Invalid base64 digit: "+e.charAt(r-1))}c=!!(p&u);p&=a;s=s+(p<<l);l+=o}while(c);n.value=fromVLQSigned(s);n.rest=r}},190:(e,r)=>{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e<n.length){return n[e]}throw new TypeError("Must be between 0 and 63: "+e)};r.decode=function(e){var r=65;var n=90;var t=97;var o=122;var i=48;var a=57;var u=43;var s=47;var l=26;var c=52;if(r<=e&&e<=n){return e-r}if(t<=e&&e<=o){return e-t+l}if(i<=e&&e<=a){return e-i+c}if(e==u){return 62}if(e==s){return 63}return-1}},345:(e,r)=>{r.GREATEST_LOWER_BOUND=1;r.LEAST_UPPER_BOUND=2;function recursiveSearch(e,n,t,o,i,a){var u=Math.floor((n-e)/2)+e;var s=i(t,o[u],true);if(s===0){return u}else if(s>0){if(n-u>1){return recursiveSearch(u,n,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){return n<o.length?n:-1}else{return u}}else{if(u-e>1){return recursiveSearch(e,u,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){return u}else{return e<0?-1:e}}}r.search=function search(e,n,t,o){if(n.length===0){return-1}var i=recursiveSearch(-1,n.length,e,n,t,o||r.GREATEST_LOWER_BOUND);if(i<0){return-1}while(i-1>=0){if(t(n[i],n[i-1],true)!==0){break}--i}return i}},680:(e,r,n)=>{var t=n(339);function generatedPositionAfter(e,r){var n=e.generatedLine;var o=r.generatedLine;var i=e.generatedColumn;var a=r.generatedColumn;return o>n||o==n&&a>=i||t.compareByGeneratedPositionsInflated(e,r)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,r){this._array.forEach(e,r)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(t.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};r.H=MappingList},758:(e,r)=>{function swap(e,r,n){var t=e[r];e[r]=e[n];e[n]=t}function randomIntInRange(e,r){return Math.round(e+Math.random()*(r-e))}function doQuickSort(e,r,n,t){if(n<t){var o=randomIntInRange(n,t);var i=n-1;swap(e,o,t);var a=e[t];for(var u=n;u<t;u++){if(r(e[u],Line truncated
|
||||
+16
-16
@@ -31,7 +31,7 @@
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/github": "^5.1.1",
|
||||
"@docker/actions-toolkit": "^0.1.0-beta.19",
|
||||
"@docker/actions-toolkit": "^0.1.0",
|
||||
"@renovate/pep440": "^1.0.0",
|
||||
"csv-parse": "^5.3.6",
|
||||
"handlebars": "^4.7.7",
|
||||
@@ -41,20 +41,20 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/csv-parse": "^1.2.2",
|
||||
"@types/node": "^16.11.26",
|
||||
"@types/semver": "^7.3.9",
|
||||
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
||||
"@typescript-eslint/parser": "^5.14.0",
|
||||
"@vercel/ncc": "^0.33.3",
|
||||
"dotenv": "^16.0.0",
|
||||
"eslint": "^8.11.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-jest": "^26.1.1",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"jest": "^27.2.5",
|
||||
"prettier": "^2.3.1",
|
||||
"ts-jest": "^27.1.2",
|
||||
"ts-node": "^10.7.0",
|
||||
"typescript": "^4.4.4"
|
||||
"@types/node": "^16.18.23",
|
||||
"@types/semver": "^7.3.13",
|
||||
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
||||
"@typescript-eslint/parser": "^5.56.0",
|
||||
"@vercel/ncc": "^0.36.1",
|
||||
"dotenv": "^16.0.3",
|
||||
"eslint": "^8.36.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-jest": "^27.2.1",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"jest": "^29.5.0",
|
||||
"prettier": "^2.8.7",
|
||||
"ts-jest": "^29.0.5",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.9.5"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -154,7 +154,7 @@ export class Meta {
|
||||
|
||||
let latest = false;
|
||||
const sver = semver.parse(vraw, {
|
||||
includePrerelease: true
|
||||
loose: true
|
||||
});
|
||||
if (semver.prerelease(vraw)) {
|
||||
if (Meta.isRawStatement(tag.attrs['pattern'])) {
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"useUnknownInCatchVariables": false,
|
||||
},
|
||||
"exclude": [
|
||||
"./__mocks__/**/*",
|
||||
"./__tests__/**/*",
|
||||
"./lib/**/*",
|
||||
"node_modules",
|
||||
|
||||
Reference in new issue
Block a user