@ohos-ports/assert-is-string 0.2.3-beta.1 → 0.2.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/lib/index.js +4 -4
- package/lib/object.js +2 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ var S=String.prototype.valueOf;a.exports=S
|
|
|
5
5
|
});var f=t(function(k,o){
|
|
6
6
|
var x=c();function b(r){try{return x.call(r),!0}catch(e){return!1}}o.exports=b
|
|
7
7
|
});var s=t(function(w,v){
|
|
8
|
-
var j=require('@
|
|
8
|
+
var j=require('@ohos-ports/assert-has-tostringtag-support/dist'),l=require('@ohos-ports/utils-native-class/dist'),y=f(),m=j();function P(r){return typeof r=="object"?r instanceof String?!0:m?y(r):l(r)==="[object String]":!1}v.exports=P
|
|
9
9
|
});var q=t(function(z,p){
|
|
10
10
|
var h=i(),T=s();function d(r){return h(r)||T(r)}p.exports=d
|
|
11
|
-
});var g=require('@
|
|
11
|
+
});var g=require('@ohos-ports/utils-define-nonenumerable-read-only-property/dist'),n=q(),C=i(),F=s();g(n,"isPrimitive",C);g(n,"isObject",F);module.exports=n;
|
|
12
12
|
/** @license Apache-2.0 */
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @module @stdlib/assert-is-string
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* var isString = require( '@
|
|
27
|
+
* var isString = require( '@ohos-ports/assert-is-string' );
|
|
28
28
|
*
|
|
29
29
|
* var bool = isString( 'beep' );
|
|
30
30
|
* // returns true
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* // returns false
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* var isString = require( '@
|
|
39
|
+
* var isString = require( '@ohos-ports/assert-is-string' ).isObject;
|
|
40
40
|
*
|
|
41
41
|
* var bool = isString( new String( 'beep' ) );
|
|
42
42
|
* // returns true
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* // returns false
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
|
-
* var isString = require( '@
|
|
48
|
+
* var isString = require( '@ohos-ports/assert-is-string' ).isPrimitive;
|
|
49
49
|
*
|
|
50
50
|
* var bool = isString( 'beep' );
|
|
51
51
|
* // returns true
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
// MODULES //
|
|
58
58
|
|
|
59
|
-
var setReadOnly = require( '@
|
|
59
|
+
var setReadOnly = require( '@ohos-ports/utils-define-nonenumerable-read-only-property' );
|
|
60
60
|
var main = require( './main.js' );
|
|
61
61
|
var isPrimitive = require( './primitive.js' );
|
|
62
62
|
var isObject = require( './object.js' );
|
package/lib/object.js
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
// MODULES //
|
|
22
22
|
|
|
23
|
-
var hasToStringTag = require( '@
|
|
24
|
-
var nativeClass = require( '@
|
|
23
|
+
var hasToStringTag = require( '@ohos-ports/assert-has-tostringtag-support' );
|
|
24
|
+
var nativeClass = require( '@ohos-ports/utils-native-class' );
|
|
25
25
|
var test = require( './try2valueof.js' );
|
|
26
26
|
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/assert-is-string",
|
|
3
|
-
"version": "0.2.3-beta.
|
|
3
|
+
"version": "0.2.3-beta.2",
|
|
4
4
|
"description": "Test if a value is a string.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
33
|
+
"@ohos-ports/assert-has-tostringtag-support": "0.2.3-beta.1",
|
|
34
|
+
"@ohos-ports/utils-define-nonenumerable-read-only-property": "0.2.3-beta.2",
|
|
35
|
+
"@ohos-ports/utils-native-class": "0.2.3-beta.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {},
|
|
38
38
|
"engines": {
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"freebsd",
|
|
46
46
|
"linux",
|
|
47
47
|
"macos",
|
|
48
|
-
"openharmony",
|
|
49
48
|
"openbsd",
|
|
50
49
|
"sunos",
|
|
51
50
|
"win32",
|
|
52
|
-
"windows"
|
|
51
|
+
"windows",
|
|
52
|
+
"openharmony"
|
|
53
53
|
],
|
|
54
54
|
"keywords": [
|
|
55
55
|
"stdlib",
|