Skip to content

Commit bc0df22

Browse files
committed
Auto-generated commit
1 parent 905622c commit bc0df22

23 files changed

+49
-48
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
benchmark:
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v3
3232
- uses: actions/setup-node@v2
3333
with:
3434
node-version: 16

.github/workflows/bundle.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ on:
2525
push:
2626
branches:
2727
- main
28-
tags_ignore:
28+
tags-ignore:
2929
- 'v[0-9]+\.[0-9]+\.[0-9]+'
3030

3131
# Workflow jobs:
3232
jobs:
3333
deno:
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v3
3737
- name: Copy files to deno directory
3838
run: |
3939
mkdir -p deno
@@ -92,7 +92,7 @@ jobs:
9292
github_token: ${{ secrets.GITHUB_TOKEN }}
9393
publish_dir: ./deno
9494
publish_branch: deno
95-
keep_files: true
95+
force_orphan: true
9696
user_name: 'stdlib-bot'
9797
user_email: '[email protected]'
9898
commit_message: 'Auto-generated commit'
@@ -107,7 +107,7 @@ jobs:
107107
umd:
108108
runs-on: ubuntu-latest
109109
steps:
110-
- uses: actions/checkout@v2
110+
- uses: actions/checkout@v3
111111
- name: Copy files to umd directory
112112
run: |
113113
mkdir -p umd
@@ -153,7 +153,7 @@ jobs:
153153
find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "1 while s/<script type=\"text\/javascript\">\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);?/<script type=\"text\/javascript\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/bundle.js\"><\/script>\n<script type=\"text\/javascript\">/g"
154154
155155
# Wrap contents of `<script type="text/javascript">` tag contents in an IIFE:
156-
find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<script type=\"text\/javascript\">([\s\S]+?)<\/script>/<script type=\"text\/javascript\">\n\(function \(\) {\1}\)\(\)\n<\/script>/g"
156+
find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<script type=\"text\/javascript\">([\s\S]+?)<\/script>/<script type=\"text\/javascript\">\n\(function \(\) {\1}\)\(\);\n<\/script>/g"
157157
158158
# Create package.json file for umd branch:
159159
jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "main": "./bundle.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./umd/package.json
@@ -164,7 +164,7 @@ jobs:
164164
github_token: ${{ secrets.GITHUB_TOKEN }}
165165
publish_dir: ./umd
166166
publish_branch: umd
167-
keep_files: true
167+
force_orphan: true
168168
user_name: 'stdlib-bot'
169169
user_email: '[email protected]'
170170
commit_message: 'Auto-generated commit'
@@ -179,7 +179,7 @@ jobs:
179179
esm:
180180
runs-on: ubuntu-latest
181181
steps:
182-
- uses: actions/checkout@v2
182+
- uses: actions/checkout@v3
183183
- name: Copy files to umd directory
184184
run: |
185185
mkdir -p esm
@@ -242,7 +242,7 @@ jobs:
242242
github_token: ${{ secrets.GITHUB_TOKEN }}
243243
publish_dir: ./esm
244244
publish_branch: esm
245-
keep_files: true
245+
force_orphan: true
246246
user_name: 'stdlib-bot'
247247
user_email: '[email protected]'
248248
commit_message: 'Auto-generated commit'

.github/workflows/cancel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#/
1818

1919
# Workflow name:
20-
name: Cancel Workflow Runs
20+
name: cancel
2121

2222
# Workflow triggers:
2323
on:

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
examples:
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v3
3232
- uses: actions/setup-node@v2
3333
with:
3434
node-version: 16

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#/
1818

1919
# Workflow name:
20-
name: Publish Package
20+
name: publish
2121

2222
# Workflow triggers:
2323
on:
@@ -31,7 +31,7 @@ jobs:
3131
env:
3232
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v3
3535
- uses: actions/setup-node@v2
3636
with:
3737
node-version: 16
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: ubuntu-latest
6464
steps:
6565
- name: Checkout main branch
66-
uses: actions/checkout@v2
66+
uses: actions/checkout@v3
6767
with:
6868
ref: main
6969
- name: Increment version in `package.json` to the version number of the tag

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#/
1818

1919
# Workflow name:
20-
name: build
20+
name: test
2121

2222
# Workflow triggers:
2323
on:
@@ -34,7 +34,7 @@ jobs:
3434
env:
3535
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v3
3838
- uses: actions/setup-node@v2
3939
with:
4040
node-version: 16

.github/workflows/test_bundles.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
#/
1818

1919
# Workflow name:
20-
name: Test Loading Bundles
20+
name: test_bundles
2121

2222
# Workflow triggers:
2323
on:
2424
workflow_run:
25-
workflows: ["bundle"]
25+
workflows: ["test"]
2626
types: [completed]
2727
workflow_dispatch:
2828

@@ -34,7 +34,7 @@ jobs:
3434
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3535
steps:
3636
- name: Checkout branch with UMD build
37-
uses: actions/checkout@v2
37+
uses: actions/checkout@v3
3838
with:
3939
ref: umd
4040
- name: Setup Node.js
@@ -57,7 +57,7 @@ jobs:
5757
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
5858
steps:
5959
- name: Checkout branch with ESM build
60-
uses: actions/checkout@v2
60+
uses: actions/checkout@v3
6161
with:
6262
ref: esm
6363
- name: Setup Node.js
@@ -80,7 +80,7 @@ jobs:
8080
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
8181
steps:
8282
- name: Checkout branch with Deno build
83-
uses: actions/checkout@v2
83+
uses: actions/checkout@v3
8484
with:
8585
ref: deno
8686
- name: Install Deno

.github/workflows/test_coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
#/
1818

1919
# Workflow name:
20-
name: coverage
20+
name: test_coverage
2121

2222
# Workflow triggers:
2323
on:
2424
workflow_run:
25-
workflows: ["build"]
25+
workflows: ["test"]
2626
types: [completed]
2727
workflow_dispatch:
2828

@@ -31,7 +31,7 @@ jobs:
3131
test:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v3
3535
- uses: actions/setup-node@v2
3636
with:
3737
node-version: 16

.github/workflows/test_install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
#/
1818

1919
# Workflow name:
20-
name: Test Installing Dependencies
20+
name: test_install
2121

2222
# Workflow triggers:
2323
on:
2424
schedule:
2525
# * is a special character in YAML so you have to quote this string
2626
- cron: '30 1 * * 6'
2727
workflow_run:
28-
workflows: ["Publish Package"]
28+
workflows: ["publish"]
2929
types: [completed]
3030
workflow_dispatch:
3131

@@ -37,7 +37,7 @@ jobs:
3737
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3838
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
3939
steps:
40-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v3
4141
- uses: actions/setup-node@v2
4242
with:
4343
node-version: 16

lib/commands/assignfrom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function command( repl ) {
5959
var err;
6060
var i;
6161
if ( !isString( workspace ) ) {
62-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', workspace ) );
62+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', workspace ) );
6363
debug( 'Error: %s', err.message );
6464
repl._ostream.write( 'Error: '+err.message+'\n' );
6565
return;

lib/commands/assignin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function command( repl ) {
6060
var err;
6161
var i;
6262
if ( !isString( workspace ) ) {
63-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', workspace ) );
63+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', workspace ) );
6464
debug( 'Error: %s', err.message );
6565
repl._ostream.write( 'Error: '+err.message+'\n' );
6666
return;

lib/commands/clear_workspace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function command( repl ) {
157157
}
158158
} else {
159159
if ( !isString( name ) ) {
160-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', name ) );
160+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', name ) );
161161
debug( 'Error: %s', err.message );
162162
repl._ostream.write( 'Error: '+err.message+'\n' );
163163
return;

lib/commands/evalin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ function command( repl ) {
6464
var FLG;
6565
var ws;
6666
if ( !isString( workspace ) ) {
67-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', workspace ) );
67+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', workspace ) );
6868
debug( 'Error: %s', err.message );
6969
repl._ostream.write( 'Error: '+err.message+'\n' );
7070
return;
7171
}
7272
if ( !isString( expression ) ) {
73-
err = new TypeError( format( 'invalid argument. Second argument must be a string primitive. Value: `%s`.', workspace ) );
73+
err = new TypeError( format( 'invalid argument. Second argument must be a string. Value: `%s`.', workspace ) );
7474
debug( 'Error: %s', err.message );
7575
repl._ostream.write( 'Error: '+err.message+'\n' );
7676
return;

lib/commands/load_workspace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function command( repl ) {
7373
var v;
7474
var i;
7575
if ( !isString( name ) ) {
76-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', name ) );
76+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', name ) );
7777
debug( 'Error: %s', err.message );
7878
repl._ostream.write( 'Error: '+err.message+'\n' );
7979
return;

lib/commands/presentation_start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function command( repl ) {
9292
}
9393
} else {
9494
if ( !isString( text ) ) {
95-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', text ) );
95+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', text ) );
9696
debug( 'Error: %s', err.message );
9797
repl._ostream.write( 'Error: '+err.message+'\n' );
9898
return;

lib/commands/presentation_stop.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
var logger = require( 'debug' );
2626
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
2727
var isNonNegativeInteger = require( '@stdlib/assert/is-nonnegative-integer' ).isPrimitive;
28+
var format = require( '@stdlib/string/format' );
2829
var objectKeys = require( '@stdlib/utils/keys' );
2930
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
3031

@@ -66,7 +67,7 @@ function command( repl ) {
6667
cache = repl._internal.presentation.cache;
6768
if ( arguments.length ) {
6869
if ( !isString( id ) && !isNonNegativeInteger( id ) ) {
69-
err = new TypeError( 'invalid argument. Invalid presentation identifier. Must be either a string or nonnegative integer. Value: `' + id + '`.' );
70+
err = new TypeError( format( 'invalid argument. Invalid presentation identifier. Must be either a string or nonnegative integer. Value: `%s`.', id ) );
7071
debug( 'Error: %s', err.message );
7172
repl._ostream.write( 'Error: '+err.message+'\n' );
7273
return false;

lib/commands/rename_workspace.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ function command( repl ) {
5757
function onCommand( oldName, newName ) {
5858
var err;
5959
if ( !isString( oldName ) ) {
60-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', oldName ) );
60+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', oldName ) );
6161
debug( 'Error: %s', err.message );
6262
repl._ostream.write( 'Error: '+err.message+'\n' );
6363
return;
6464
}
6565
if ( !isString( newName ) ) {
66-
err = new TypeError( format( 'invalid argument. Second argument must be a string primitive. Value: `%s`.', newName ) );
66+
err = new TypeError( format( 'invalid argument. Second argument must be a string. Value: `%s`.', newName ) );
6767
debug( 'Error: %s', err.message );
6868
repl._ostream.write( 'Error: '+err.message+'\n' );
6969
return;

lib/commands/tutorial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function command( repl ) {
105105
return;
106106
}
107107
if ( !isString( name ) ) {
108-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', name ) );
108+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', name ) );
109109
debug( 'Error: %s', err.message );
110110
repl._ostream.write( 'Error: '+err.message+'\n' );
111111
return;

lib/commands/user_doc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function command( repl ) {
6464
var r;
6565
var i;
6666
if ( !isString( alias ) ) {
67-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', alias ) );
67+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', alias ) );
6868
debug( 'Error: %s', err.message );
6969
repl._ostream.write( 'Error: '+err.message+'\n' );
7070
return;

lib/commands/vars_workspace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function command( repl ) {
9696
}
9797
} else {
9898
if ( !isString( name ) ) {
99-
err = new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', name ) );
99+
err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', name ) );
100100
debug( 'Error: %s', err.message );
101101
repl._ostream.write( 'Error: '+err.message+'\n' );
102102
return;

lib/create_require.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function createRequire( module ) {
7575
*/
7676
function resolve( name, options ) {
7777
if ( !isString( name ) ) {
78-
throw new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', name ) );
78+
throw new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', name ) );
7979
}
8080
return resolveFilename( name, module, false, options );
8181
}

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ setNonEnumerableReadOnly( REPL.prototype, 'load', function load( fpath, clbk ) {
600600
throw new Error( 'invalid operation. Cannot load a file into a REPL which has already closed.' );
601601
}
602602
if ( !isString( fpath ) ) {
603-
throw new TypeError( format( 'invalid argument. First argument must be a string primitive. Value: `%s`.', fpath ) );
603+
throw new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', fpath ) );
604604
}
605605
if ( !isFunction( clbk ) ) {
606606
throw new TypeError( format( 'invalid argument. Second argument must be a function. Value: `%s`.', clbk ) );

0 commit comments

Comments
 (0)