diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 5b82411..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-08-01T01:14:35.486Z diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml index 334eb59..91f2b93 100644 --- a/.github/workflows/productionize.yml +++ b/.github/workflows/productionize.yml @@ -82,21 +82,6 @@ jobs: id: transform-error-messages uses: stdlib-js/transform-errors-action@main - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - name: 'Update dependencies in package.json' run: | diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..24f269e --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,3 @@ +/// +import getgid from '../docs/types/index'; +export = getgid; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..77ce263 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,9 @@ +"use strict";var e=function(o,r){return function(){return r||o((r={exports:{}}).exports,r),r.exports}};var t=e(function(b,i){ +function c(){return null}i.exports=c +});var s=e(function(m,u){ +var v=require("process"),l=v.getgid;u.exports=l +});var n=e(function(y,g){ +var p=require('@stdlib/assert-is-function/dist'),q=t(),a=s(),d=p(a)?a:q;g.exports=d +});var x=n();module.exports=x; +/** @license Apache-2.0 */ +//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map new file mode 100644 index 0000000..48f0710 --- /dev/null +++ b/dist/index.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["../lib/polyfill.js", "../lib/native.js", "../lib/main.js", "../lib/index.js"], + "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MAIN //\n\n/**\n* Polyfill for returning a numeric group identity for environments which do not provide native support.\n*\n* @private\n* @returns {null} null\n*\n* @example\n* var gid = getgid();\n* // returns null\n*/\nfunction getgid() {\n\treturn null;\n}\n\n\n// EXPORTS //\n\nmodule.exports = getgid;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar proc = require( 'process' );\n\n\n// MAIN //\n\n/**\n* Returns the numeric group identity of the calling process.\n*\n* @private\n* @name getgid\n* @type {Function}\n* @returns {integer} numeric group identity\n*\n* @example\n* var gid = getgid();\n*/\nvar getgid = proc.getgid;\n\n\n// EXPORTS //\n\nmodule.exports = getgid;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar isFunction = require( '@stdlib/assert-is-function' );\nvar polyfill = require( './polyfill.js' );\nvar builtin = require( './native.js' );\n\n\n// MAIN //\n\n/**\n* Returns the numeric group identity of the calling process.\n*\n* @name getgid\n* @type {Function}\n* @returns {(integer|null)} numeric group identity or null\n*\n* @example\n* var gid = getgid();\n*/\nvar getgid = ( isFunction( builtin ) ) ? builtin : polyfill;\n\n\n// EXPORTS //\n\nmodule.exports = getgid;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Return the numeric group identity of the calling process.\n*\n* @module @stdlib/process-getgid\n*\n* @example\n* var getgid = require( '@stdlib/process-getgid' );\n*\n* var gid = getgid();\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"], + "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAgCA,SAASC,GAAS,CACjB,OAAO,IACR,CAKAD,EAAO,QAAUC,ICvCjB,IAAAC,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAO,QAAS,SAAU,EAgB1BC,EAASD,EAAK,OAKlBD,EAAO,QAAUE,IC3CjB,IAAAC,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAa,QAAS,4BAA6B,EACnDC,EAAW,IACXC,EAAU,IAeVC,EAAWH,EAAYE,CAAQ,EAAMA,EAAUD,EAKnDF,EAAO,QAAUI,ICXjB,IAAIC,EAAO,IAKX,OAAO,QAAUA", + "names": ["require_polyfill", "__commonJSMin", "exports", "module", "getgid", "require_native", "__commonJSMin", "exports", "module", "proc", "getgid", "require_main", "__commonJSMin", "exports", "module", "isFunction", "polyfill", "builtin", "getgid", "main"] +} diff --git a/docs/types/index.d.ts b/docs/types/index.d.ts index 9a764b3..d14031b 100644 --- a/docs/types/index.d.ts +++ b/docs/types/index.d.ts @@ -16,7 +16,7 @@ * limitations under the License. */ -// TypeScript Version: 2.0 +// TypeScript Version: 4.1 /** * Returns the numeric group identity of the calling process.