Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@ minutesInYear,"@stdlib/time/minutes-in-year"
MOBY_DICK,"@stdlib/datasets/moby-dick"
MONTH_NAMES_EN,"@stdlib/datasets/month-names-en"
MONTHS_IN_YEAR,"@stdlib/constants/time/months-in-year"
moveProperty,"@stdlib/utils/move-property"
moveProperty,"@stdlib/object/move-property"
MultiSlice,"@stdlib/slice/multi"
namedtypedtuple,"@stdlib/dstructs/named-typed-tuple"
NAN,"@stdlib/constants/float64/nan"
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/namespace/lib/namespace/m.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ ns.push({

ns.push({
'alias': 'moveProperty',
'path': '@stdlib/utils/move-property',
'value': require( '@stdlib/utils/move-property' ),
'path': '@stdlib/object/move-property',
'value': require( '@stdlib/object/move-property' ),
'type': 'Function',
'related': []
});
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/pkg2alias/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@
"@stdlib/datasets/moby-dick",MOBY_DICK
"@stdlib/datasets/month-names-en",MONTH_NAMES_EN
"@stdlib/constants/time/months-in-year",MONTHS_IN_YEAR
"@stdlib/utils/move-property",moveProperty
"@stdlib/object/move-property",moveProperty
"@stdlib/slice/multi",MultiSlice
"@stdlib/dstructs/named-typed-tuple",namedtypedtuple
"@stdlib/constants/float64/nan",NAN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@
"@stdlib/datasets/moby-dick",""
"@stdlib/datasets/month-names-en",""
"@stdlib/constants/time/months-in-year",""
"@stdlib/utils/move-property",""
"@stdlib/object/move-property",""
"@stdlib/slice/multi","@stdlib/ndarray/ctor,@stdlib/slice/ctor"
"@stdlib/dstructs/named-typed-tuple","@stdlib/array/typed"
"@stdlib/constants/float64/nan","@stdlib/constants/float32/nan"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@
"@stdlib/datasets/moby-dick","@stdlib/datasets-moby-dick"
"@stdlib/datasets/month-names-en","@stdlib/datasets-month-names-en"
"@stdlib/constants/time/months-in-year","@stdlib/constants-time-months-in-year"
"@stdlib/utils/move-property","@stdlib/utils-move-property"
"@stdlib/object/move-property","@stdlib/object-move-property"
"@stdlib/slice/multi","@stdlib/slice-multi"
"@stdlib/dstructs/named-typed-tuple","@stdlib/dstructs-named-typed-tuple"
"@stdlib/constants/float64/nan","@stdlib/constants-float64-nan"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@
"@stdlib/datasets-moby-dick","@stdlib/datasets/moby-dick"
"@stdlib/datasets-month-names-en","@stdlib/datasets/month-names-en"
"@stdlib/constants-time-months-in-year","@stdlib/constants/time/months-in-year"
"@stdlib/utils-move-property","@stdlib/utils/move-property"
"@stdlib/object-move-property","@stdlib/object/move-property"
"@stdlib/slice-multi","@stdlib/slice/multi"
"@stdlib/dstructs-named-typed-tuple","@stdlib/dstructs/named-typed-tuple"
"@stdlib/constants-float64-nan","@stdlib/constants/float64/nan"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ limitations under the License.
## Usage

```javascript
var moveProperty = require( '@stdlib/utils/move-property' );
var moveProperty = require( '@stdlib/object/move-property' );
```

#### moveProperty( source, prop, target )
Expand Down Expand Up @@ -96,7 +96,7 @@ var bool = moveProperty( obj1, 'c', obj2 );
<!-- eslint no-undef: "error" -->

```javascript
var moveProperty = require( '@stdlib/utils/move-property' );
var moveProperty = require( '@stdlib/object/move-property' );

var obj1 = {
'beep': 'boop'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
/**
* Move a property from one object to another object.
*
* @module @stdlib/utils/move-property
* @module @stdlib/object/move-property
*
* @example
* var moveProperty = require( '@stdlib/utils/move-property' );
* var moveProperty = require( '@stdlib/object/move-property' );
*
* var obj1 = { 'a': 'b' };
* var obj2 = {};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@stdlib/utils/move-property",
"name": "@stdlib/object/move-property",
"version": "0.0.0",
"description": "Move a property from one object to another object.",
"license": "Apache-2.0",
Expand Down
30 changes: 0 additions & 30 deletions lib/node_modules/@stdlib/utils/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
import maskArguments = require( '@stdlib/utils/mask-arguments' );
import memoize = require( '@stdlib/utils/memoize' );
import merge = require( '@stdlib/utils/merge' );
import moveProperty = require( '@stdlib/utils/move-property' );
import naryFunction = require( '@stdlib/utils/nary-function' );
import nativeClass = require( '@stdlib/utils/native-class' );
import nextTick = require( '@stdlib/utils/next-tick' );
Expand Down Expand Up @@ -784,7 +783,7 @@
*
* @example
* var p = ns.convertPath( '/c/foo/bar/beep.c', 'win32' );
* // returns 'c:\\foo\\bar\\beep.c'

Check failure on line 786 in lib/node_modules/@stdlib/utils/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Displayed return value is `c:\\foo\\bar\\beep.c`, but expected `c:\foo\bar\beep.c` instead
*
* @example
* var p = ns.convertPath( '/c/foo/bar/beep.c', 'mixed' );
Expand Down Expand Up @@ -1929,7 +1928,7 @@
*
* @example
* var str = ns.rescape( '[A-Z]*' );
* // returns '\\[A\\-Z\\]\\*'

Check failure on line 1931 in lib/node_modules/@stdlib/utils/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Displayed return value is `\\[A\\-Z\\]\\*`, but expected `\[A\-Z\]\*` instead
*/
rescape: typeof rescape;

Expand Down Expand Up @@ -2157,7 +2156,7 @@
* var obj = {'a':{'b':{'c':'d'}}};
*
* var out = flatten( obj );
* // returns {'a|b':{'c':'d'}}

Check failure on line 2159 in lib/node_modules/@stdlib/utils/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Displayed return value is `{'a|b':{'c':'d'}}`, but expected `{ 'a|b|c': 'd' }` instead
*/
flattenObject: typeof flattenObject;

Expand Down Expand Up @@ -3273,7 +3272,7 @@
* // returns [ 2, 4, 6 ]
*
* var count = thisArg.count;
* // returns 3

Check failure on line 3275 in lib/node_modules/@stdlib/utils/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Displayed return value is `3`, but expected `0` instead
*/
mapArguments: typeof mapArguments;

Expand Down Expand Up @@ -3902,35 +3901,6 @@
*/
merge: typeof merge;

/**
* Moves a property from one object to another object.
*
* ## Notes
*
* - The property is deleted from the source object and the property's descriptor is preserved during transfer.
* - If a source property is not configurable, the function throws an error, as the property cannot be deleted from the source object.
*
* @param source - source object
* @param prop - property to move
* @param target - target object
* @returns boolean indicating whether operation was successful
*
* @example
* var obj1 = { 'a': 'b' };
* var obj2 = {};
*
* var bool = ns.moveProperty( obj1, 'a', obj2 );
* // returns true
*
* @example
* var obj1 = { 'a': 'b' };
* var obj2 = {};
*
* var bool = ns.moveProperty( obj1, 'c', obj2 );
* // returns false
*/
moveProperty: typeof moveProperty;

/**
* Returns a function that applies a specified number of arguments to a provided function.
*
Expand Down
9 changes: 0 additions & 9 deletions lib/node_modules/@stdlib/utils/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1147,15 +1147,6 @@ setReadOnly( utils, 'memoize', require( '@stdlib/utils/memoize' ) );
*/
setReadOnly( utils, 'merge', require( '@stdlib/utils/merge' ) );

/**
* @name moveProperty
* @memberof utils
* @readonly
* @type {Function}
* @see {@link module:@stdlib/utils/move-property}
*/
setReadOnly( utils, 'moveProperty', require( '@stdlib/utils/move-property' ) );

/**
* @name naryFunction
* @memberof utils
Expand Down
Loading