Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
8d6f1a4
Add exports.types
lukechilds Apr 23, 2019
b835404
Don't use ES2015 shorthand property names
lukechilds Apr 23, 2019
c211c0a
Add isPromise
lukechilds Apr 23, 2019
87add48
Stricter Promise check
lukechilds Apr 23, 2019
0916565
Add generic type checks
lukechilds Apr 23, 2019
48ff393
Export isArrayBufferView
lukechilds Apr 23, 2019
f33690f
isAnyArrayBuffer
lukechilds Apr 23, 2019
c287e1e
isSetIterator
lukechilds Apr 24, 2019
29f7398
isNumberObject
lukechilds Apr 24, 2019
c600e5c
isStringObject
lukechilds Apr 24, 2019
8ee683f
isBooleanObject
lukechilds Apr 24, 2019
22478b9
isBigIntObject
lukechilds Apr 24, 2019
454c713
isSymbolObject
lukechilds Apr 24, 2019
0233fd3
isBoxedPrimitive
lukechilds Apr 24, 2019
bfdc9da
Missing semis
lukechilds Apr 24, 2019
1a4be6f
isArgumentsObject
lukechilds Apr 24, 2019
ee6ad56
isGeneratorObject
lukechilds Apr 24, 2019
a1cdeb5
isWebAssemblyCompiledModule
lukechilds Apr 24, 2019
3332e1a
Remove accidental yarn.lock
lukechilds Apr 24, 2019
cf91cf0
Add lockfiles to .gitignore
lukechilds Apr 24, 2019
22800fc
Add Node.js util.types tests
lukechilds Apr 24, 2019
cd2723e
Get the test working in userland
lukechilds Apr 24, 2019
67205d8
Test against userland util.types
lukechilds Apr 24, 2019
6e048d9
Add better logs to test
lukechilds Apr 24, 2019
fc3e1c1
Throw when a test fails
lukechilds Apr 24, 2019
697fcdc
export isError as types.isNativeError
lukechilds Apr 24, 2019
441f0be
Re-enable isNativeError test
lukechilds Apr 24, 2019
89c43a7
Throw error for isModuleNamespaceObject, isExternal, isProxy
lukechilds Apr 24, 2019
260dca0
Improve code re-use
lukechilds Apr 24, 2019
93be5d7
Detect type support and only create supported type methods
lukechilds Apr 24, 2019
3e31439
Make sure all functions are named
lukechilds Apr 24, 2019
d6dab2f
Don't throw for unsupported types, just return false
lukechilds Apr 24, 2019
8b83548
Only run isType tests against supported types
lukechilds Apr 24, 2019
20c88bb
Only run boxed primitive tests against supported types
lukechilds Apr 24, 2019
c64868e
Only run typed array tests against supported types
lukechilds Apr 24, 2019
1efe000
Only run typed array value check tests against supported types
lukechilds Apr 24, 2019
a7f5c7f
Wrap async function in eval so it doesn't cause syntax errors
lukechilds Apr 24, 2019
b8b3b95
Add Object.entries ponyfill
lukechilds Apr 25, 2019
e2b3cf3
Fall back to less accurate typed array check if Symbol.ToStringTag is…
lukechilds Apr 25, 2019
2fdf5af
Skip Symbol.ToStringTag test if undefined
lukechilds Apr 25, 2019
d07d8d0
Log skipped tests
lukechilds Apr 25, 2019
9349075
Declare all functions in module scope
lukechilds Apr 25, 2019
e75bf9c
Better util.inspect shim
lukechilds Apr 25, 2019
7244fff
Transpile test source
lukechilds Apr 25, 2019
fe2139e
Use is-generator-function
lukechilds Apr 26, 2019
d43eb71
Remove duplicate function declaration
lukechilds Apr 26, 2019
ba7fe76
Use is-promise
lukechilds Apr 26, 2019
f221070
Make test logs clearer
lukechilds Apr 26, 2019
2fac962
Fix isTypedArray in environments without Symbol.toStringTag
lukechilds Apr 26, 2019
a1ecb61
Add local browser test script
lukechilds Apr 23, 2019
aba04a9
Add more accurate test logging
lukechilds Apr 26, 2019
54a1a68
Run util.types tests in browsers
lukechilds Apr 26, 2019
625658f
Improve readability of function array
lukechilds Apr 26, 2019
f67d6e3
Don't use arrow function in browser test
lukechilds Apr 28, 2019
4d6dc59
Explicitly set test methods
lukechilds Apr 29, 2019
312d13d
Fall back to instanceof if ObjectToString is unreliable
lukechilds Apr 29, 2019
4daf328
Wrap long lines
lukechilds Apr 29, 2019
2a98094
Use indexOf instead of includes
lukechilds Apr 29, 2019
f0d5bf5
Only run fake typed array tests if Symbol.toStringTag is supported
lukechilds Apr 29, 2019
c37c2e3
Refactor transpiled code to be simpler and not depend on Symbol.iterator
lukechilds Apr 29, 2019
eea35d1
Fall back to ObjectToString if ArrayBuffer.isView is unsupported
lukechilds Apr 29, 2019
4614928
Fix fallback isArrayBufferView implementation
lukechilds Apr 29, 2019
67d1e18
Test for Buffer in isUint8Array if no Symbol.toStringTag support
lukechilds Apr 29, 2019
30edc4e
Also skip fake fakeDataView test if no Symbol.toStringTag support
lukechilds Apr 29, 2019
86c55d8
Use safe-buffer
lukechilds Apr 29, 2019
15b2af3
Fix byteOffset error for DataView in Node.js 0.10
lukechilds Apr 29, 2019
3f36436
Use stricter Promise check
lukechilds Apr 30, 2019
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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
yarn.lock
package-lock.json
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@
],
"scripts": {
"test": "node test/node/index.js",
"test:browsers": "airtap test/browser/index.js"
"test:browsers": "airtap test/browser/index.js",
"test:browsers:local": "npm run test:browsers -- --local"
},
"dependencies": {
"inherits": "2.0.3"
"inherits": "2.0.3",
"is-arguments": "^1.0.4",
"is-generator-function": "^1.0.7",
"object.entries": "^1.1.0",
"safe-buffer": "^5.1.2"
},
"license": "MIT",
"devDependencies": {
Expand Down
Loading