Skip to content

Commit 6ca1b83

Browse files
committed
Realias constants
1 parent 4a42a7b commit 6ca1b83

File tree

3 files changed

+12
-12
lines changed
  • lib/node_modules/@stdlib

3 files changed

+12
-12
lines changed

lib/node_modules/@stdlib/namespace/lib/namespace/u.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,22 +186,22 @@ ns.push({
186186
});
187187

188188
ns.push({
189-
'alias': 'UNICODE_MAX_BMP_CODE_POINT',
190-
'path': '@stdlib/string/constants/unicode-max-bmp-code-point',
191-
'value': require( '@stdlib/string/constants/unicode-max-bmp-code-point' ),
189+
'alias': 'UNICODE_MAX',
190+
'path': '@stdlib/string/constants/unicode-max',
191+
'value': require( '@stdlib/string/constants/unicode-max' ),
192192
'type': 'number',
193193
'related': [
194-
'@stdlib/string/constants/unicode-max-code-point'
194+
'@stdlib/string/constants/unicode-max-bmp'
195195
]
196196
});
197197

198198
ns.push({
199-
'alias': 'UNICODE_MAX_CODE_POINT',
200-
'path': '@stdlib/string/constants/unicode-max-code-point',
201-
'value': require( '@stdlib/string/constants/unicode-max-code-point' ),
199+
'alias': 'UNICODE_MAX_BMP',
200+
'path': '@stdlib/string/constants/unicode-max-bmp',
201+
'value': require( '@stdlib/string/constants/unicode-max-bmp' ),
202202
'type': 'number',
203203
'related': [
204-
'@stdlib/string/constants/unicode-max-bmp-code-point'
204+
'@stdlib/string/constants/unicode-max'
205205
]
206206
});
207207

lib/node_modules/@stdlib/repl/code-blocks/lib/db.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,8 +1192,8 @@ module.exports = {
11921192
"uncapitalizeKeys": "obj = { 'AA': 1, 'BB': 2 };\nout = uncapitalizeKeys( obj )\n",
11931193
"uncurry": "function addX( x ) {\n return function addY( y ) {\n return x + y;\n };\n};\nfcn = uncurry( addX );\nsum = fcn( 2, 3 )\n\n// To enforce a fixed number of parameters, provide an `arity` argument:\nfunction add( x ) {\n return function add( y ) {\n return x + y;\n };\n};\nfcn = uncurry( add, 2 );\nsum = fcn( 9 )\n\n// To specify an execution context, provide a `thisArg` argument:\nfunction addX( x ) {\n this.x = x;\n return addY;\n};\nfunction addY( y ) {\n return this.x + y;\n};\nfcn = uncurry( addX, {} );\nsum = fcn( 2, 3 )\n",
11941194
"uncurryRight": "function addX( x ) {\n return function addY( y ) {\n return x + y;\n };\n};\nfcn = uncurryRight( addX );\nsum = fcn( 3, 2 )\n\n// To enforce a fixed number of parameters, provide an `arity` argument:\nfunction add( y ) {\n return function add( x ) {\n return x + y;\n };\n};\nfcn = uncurryRight( add, 2 );\nsum = fcn( 9 )\n\n// To specify an execution context, provide a `thisArg` argument:\nfunction addY( y ) {\n this.y = y;\n return addX;\n};\nfunction addX( x ) {\n return x + this.y;\n};\nfcn = uncurryRight( addY, {} );\nsum = fcn( 3, 2 )\n",
1195-
"UNICODE_MAX_BMP_CODE_POINT": "UNICODE_MAX_BMP_CODE_POINT\n",
1196-
"UNICODE_MAX_CODE_POINT": "UNICODE_MAX_CODE_POINT\n",
1195+
"UNICODE_MAX": "UNICODE_MAX\n",
1196+
"UNICODE_MAX_BMP": "UNICODE_MAX_BMP\n",
11971197
"unshift": "\n// Arrays:\narr = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];\narr = unshift( arr, 6.0, 7.0 )\n\n// Typed arrays:\narr = new Float64Array( [ 1.0, 2.0 ] );\narr = unshift( arr, 3.0, 4.0 )\n\n// Array-like object:\narr = { 'length': 1, '0': 1.0 };\narr = unshift( arr, 2.0, 3.0 )\n",
11981198
"until": "function predicate( i ) { return ( i >= 5 ); };\nfunction beep( i ) { console.log( 'boop: %d', i ); };\nuntil( predicate, beep )\n",
11991199
"untilAsync": "function predicate( i, clbk ) { clbk( null, i >= 5 ); };\nfunction fcn( i, next ) {\n setTimeout( onTimeout, i );\n function onTimeout() {\n next( null, 'boop'+i );\n }\n};\nfunction done( error, result ) {\n if ( error ) {\n throw error;\n }\n console.log( result );\n};\nuntilAsync( predicate, fcn, done )\n",

lib/node_modules/@stdlib/repl/help/lib/db.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,8 +1192,8 @@ module.exports = {
11921192
"uncapitalizeKeys": "\nuncapitalizeKeys( obj )\n Converts the first letter of each object key to lowercase.\n\n The function only transforms own properties. Hence, the function does not\n transform inherited properties.\n\n The function shallow copies key values.\n\n Parameters\n ----------\n obj: Object\n Source object.\n\n Returns\n -------\n out: Object\n New object.\n\n Examples\n --------\n > var obj = { 'AA': 1, 'BB': 2 };\n > var out = uncapitalizeKeys( obj )\n { 'aA': 1, 'bB': 2 }\n\n See Also\n --------\n capitalizeKeys, lowercaseKeys\n",
11931193
"uncurry": "\nuncurry( fcn[, arity, ][thisArg] )\n Transforms a curried function into a function invoked with multiple\n arguments.\n\n Parameters\n ----------\n fcn: Function\n Curried function.\n\n arity: integer (optional)\n Number of parameters.\n\n thisArg: any (optional)\n Evaluation context.\n\n Returns\n -------\n out: Function\n Uncurried function.\n\n Examples\n --------\n > function addX( x ) {\n ... return function addY( y ) {\n ... return x + y;\n ... };\n ... };\n > var fcn = uncurry( addX );\n > var sum = fcn( 2, 3 )\n 5\n\n // To enforce a fixed number of parameters, provide an `arity` argument:\n > function add( x ) {\n ... return function add( y ) {\n ... return x + y;\n ... };\n ... };\n > fcn = uncurry( add, 2 );\n > sum = fcn( 9 )\n <Error>\n\n // To specify an execution context, provide a `thisArg` argument:\n > function addX( x ) {\n ... this.x = x;\n ... return addY;\n ... };\n > function addY( y ) {\n ... return this.x + y;\n ... };\n > fcn = uncurry( addX, {} );\n > sum = fcn( 2, 3 )\n 5\n\n See Also\n --------\n curry, uncurryRight\n",
11941194
"uncurryRight": "\nuncurryRight( fcn[, arity, ][thisArg] )\n Transforms a curried function into a function invoked with multiple\n arguments.\n\n Provided arguments are applied starting from the right.\n\n Parameters\n ----------\n fcn: Function\n Curried function.\n\n arity: integer (optional)\n Number of parameters.\n\n thisArg: any (optional)\n Evaluation context.\n\n Returns\n -------\n out: Function\n Uncurried function.\n\n Examples\n --------\n > function addX( x ) {\n ... return function addY( y ) {\n ... return x + y;\n ... };\n ... };\n > var fcn = uncurryRight( addX );\n > var sum = fcn( 3, 2 )\n 5\n\n // To enforce a fixed number of parameters, provide an `arity` argument:\n > function add( y ) {\n ... return function add( x ) {\n ... return x + y;\n ... };\n ... };\n > fcn = uncurryRight( add, 2 );\n > sum = fcn( 9 )\n <Error>\n\n // To specify an execution context, provide a `thisArg` argument:\n > function addY( y ) {\n ... this.y = y;\n ... return addX;\n ... };\n > function addX( x ) {\n ... return x + this.y;\n ... };\n > fcn = uncurryRight( addY, {} );\n > sum = fcn( 3, 2 )\n 5\n\n See Also\n --------\n curry, curryRight, uncurry\n",
1195-
"UNICODE_MAX_BMP_CODE_POINT": "\nUNICODE_MAX_BMP_CODE_POINT\n Maximum Unicode code point in the Basic Multilingual Plane (BMP).\n\n Examples\n --------\n > UNICODE_MAX_BMP_CODE_POINT\n 65535\n\n See Also\n --------\n UNICODE_MAX_CODE_POINT\n",
1196-
"UNICODE_MAX_CODE_POINT": "\nUNICODE_MAX_CODE_POINT\n Maximum Unicode code point.\n\n Examples\n --------\n > UNICODE_MAX_CODE_POINT\n 1114111\n\n See Also\n --------\n UNICODE_MAX_BMP_CODE_POINT\n",
1195+
"UNICODE_MAX": "\nUNICODE_MAX\n Maximum Unicode code point.\n\n Examples\n --------\n > UNICODE_MAX\n 1114111\n\n See Also\n --------\n UNICODE_MAX_BMP\n",
1196+
"UNICODE_MAX_BMP": "\nUNICODE_MAX_BMP\n Maximum Unicode code point in the Basic Multilingual Plane (BMP).\n\n Examples\n --------\n > UNICODE_MAX_BMP\n 65535\n\n See Also\n --------\n UNICODE_MAX\n",
11971197
"unshift": "\nunshift( collection, ...items )\n Adds one or more elements to the beginning of a collection.\n\n If the input collection is a typed array, the output value does not equal\n the input reference and the underlying `ArrayBuffer` may *not* be the same\n as the `ArrayBuffer` belonging to the input view.\n\n For purposes of generality, always treat the output collection as distinct\n from the input collection.\n\n Parameters\n ----------\n collection: Array|TypedArray|Object\n A collection. If the collection is an `Object`, the collection should be\n array-like.\n\n items: ...any\n Items to add.\n\n Returns\n -------\n out: Array|TypedArray|Object\n Updated collection.\n\n Examples\n --------\n // Arrays:\n > var arr = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];\n > arr = unshift( arr, 6.0, 7.0 )\n [ 6.0, 7.0, 1.0, 2.0, 3.0, 4.0, 5.0 ]\n\n // Typed arrays:\n > arr = new Float64Array( [ 1.0, 2.0 ] );\n > arr = unshift( arr, 3.0, 4.0 )\n <Float64Array>[ 3.0, 4.0, 1.0, 2.0 ]\n\n // Array-like object:\n > arr = { 'length': 1, '0': 1.0 };\n > arr = unshift( arr, 2.0, 3.0 )\n { 'length': 3, '0': 2.0, '1': 3.0, '2': 1.0 }\n\n See Also\n --------\n pop, push, shift\n",
11981198
"until": "\nuntil( predicate, fcn[, thisArg] )\n Invokes a function until a test condition is true.\n\n When invoked, both the predicate function and the function to invoke are\n provided a single argument:\n\n - `i`: iteration number (starting from zero)\n\n Parameters\n ----------\n predicate: Function\n The predicate function which indicates whether to stop invoking a\n function.\n\n fcn: Function\n The function to invoke.\n\n thisArg: any (optional)\n Execution context for the invoked function.\n\n Examples\n --------\n > function predicate( i ) { return ( i >= 5 ); };\n > function beep( i ) { console.log( 'boop: %d', i ); };\n > until( predicate, beep )\n boop: 0\n boop: 1\n boop: 2\n boop: 3\n boop: 4\n\n See Also\n --------\n doUntil, doWhile, untilAsync, untilEach, whilst\n",
11991199
"untilAsync": "\nuntilAsync( predicate, fcn, done[, thisArg] )\n Invokes a function until a test condition is true.\n\n The predicate function is provided two arguments:\n\n - `i`: iteration number (starting from zero)\n - `clbk`: a callback indicating whether to invoke `fcn`\n\n The `clbk` function accepts two arguments:\n\n - `error`: error argument\n - `bool`: test result\n\n If the test result is falsy, the function invokes `fcn`; otherwise, the\n function invokes the `done` callback.\n\n The function to invoke is provided two arguments:\n\n - `i`: iteration number (starting from zero)\n - `next`: a callback which must be invoked before proceeding to the next\n iteration\n\n The first argument of the `next` callback is an `error` argument. If `fcn`\n calls the `next` callback with a truthy `error` argument, the function\n suspends execution and immediately calls the `done` callback for subsequent\n `error` handling.\n\n The `done` callback is invoked with an `error` argument and any arguments\n passed to the final `next` callback.\n\n Execution is *not* guaranteed to be asynchronous. To guarantee asynchrony,\n wrap the `done` callback in a function which either executes at the end of\n the current stack (e.g., `nextTick`) or during a subsequent turn of the\n event loop (e.g., `setImmediate`, `setTimeout`).\n\n Parameters\n ----------\n predicate: Function\n The predicate function which indicates whether to continue invoking a\n function.\n\n fcn: Function\n The function to invoke.\n\n done: Function\n Callback to invoke upon completion.\n\n thisArg: any (optional)\n Execution context for the invoked function.\n\n Examples\n --------\n > function predicate( i, clbk ) { clbk( null, i >= 5 ); };\n > function fcn( i, next ) {\n ... setTimeout( onTimeout, i );\n ... function onTimeout() {\n ... next( null, 'boop'+i );\n ... }\n ... };\n > function done( error, result ) {\n ... if ( error ) {\n ... throw error;\n ... }\n ... console.log( result );\n ... };\n > untilAsync( predicate, fcn, done )\n boop: 4\n\n See Also\n --------\n doUntilAsync, doWhileAsync, until, whileAsync\n",

0 commit comments

Comments
 (0)