@jymfony/util
Advanced tools
Comparing version 0.1.0-alpha.16 to 0.1.0-alpha.17
@@ -48,3 +48,7 @@ 'use strict'; | ||
*/ | ||
[Symbol.hasInstance](instance) { | ||
static [Symbol.hasInstance](instance) { | ||
if (! instance) { | ||
return false; | ||
} | ||
return instance.constructor === RegExp || instance.constructor === __jymfony.RegExp; | ||
@@ -51,0 +55,0 @@ } |
{ | ||
"name": "@jymfony/util", | ||
"version": "0.1.0-alpha.16", | ||
"version": "0.1.0-alpha.17", | ||
"description": "Jymfony util functions", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@jymfony/exceptions": "0.1.0-alpha.16" | ||
"@jymfony/exceptions": "0.1.0-alpha.17" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": { |
@@ -9,2 +9,8 @@ require('../../lib/Regex/quote'); | ||
}); | ||
if (! __jymfony.Platform.hasModernRegex()) { | ||
it('native regex instanceof named regex should return true', () => { | ||
expect(/23/gi instanceof RegExp).to.be.true; | ||
}); | ||
} | ||
}); |
@@ -223,3 +223,3 @@ /// <reference lib="esnext" /> | ||
} | ||
declare type Constructor<T = any> = Function | { prototype: T }; | ||
declare type Constructor<T = any> = Function & { prototype: T }; | ||
@@ -230,4 +230,4 @@ declare class MixinInterface { | ||
declare function getInterface<T = any>(definition: T): T & MixinInterface; | ||
declare function getTrait<T = any>(definition: T): T & MixinInterface; | ||
declare function getInterface<T = any>(definition: T): Constructor<T & MixinInterface>; | ||
declare function getTrait<T = any>(definition: T): Constructor<T & MixinInterface>; | ||
@@ -234,0 +234,0 @@ declare type AsyncFunction = (...args: any[]) => Promise<any>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
233181
6641
+ Added@jymfony/exceptions@0.1.0-alpha.17(transitive)
- Removed@jymfony/exceptions@0.1.0-alpha.16(transitive)