-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e26ad35
commit fad59c3
Showing
45 changed files
with
673 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { strict } from '../assert.js'; | ||
export { strict as default, strict } from '../assert.js'; | ||
import '../chunk-70ce19f7.js'; | ||
import '../chunk-6cc4de3c.js'; | ||
import '../chunk-debdd147.js'; | ||
|
||
const { | ||
fail, | ||
AssertionError, | ||
ok, | ||
equal, | ||
notEqual, | ||
deepEqual, | ||
notDeepEqual, | ||
deepStrictEqual, | ||
notDeepStrictEqual, | ||
strictEqual, | ||
notStrictEqual, | ||
throws, | ||
rejects, | ||
doesNotThrow, | ||
doesNotReject, | ||
ifError, | ||
match, | ||
doesNotMatch, | ||
CallTracker | ||
} = strict; | ||
|
||
export { AssertionError, CallTracker, deepEqual, deepStrictEqual, doesNotMatch, doesNotReject, doesNotThrow, equal, fail, ifError, match, notDeepEqual, notDeepStrictEqual, notEqual, notStrictEqual, ok, rejects, strictEqual, throws }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
function unimplemented () { | ||
throw new Error('Node.js dns is not supported by JSPM core outside of Node.js'); | ||
} | ||
|
||
var promises = { | ||
lookup: unimplemented, | ||
lookupService: unimplemented, | ||
Resolver: unimplemented, | ||
getServers: unimplemented, | ||
resolve: unimplemented, | ||
resolve4: unimplemented, | ||
resolve6: unimplemented, | ||
resolveAny: unimplemented, | ||
resolveCname: unimplemented, | ||
resolveMx: unimplemented, | ||
resolveNaptr: unimplemented, | ||
resolveNs: unimplemented, | ||
resolvePtr: unimplemented, | ||
resolveSoa: unimplemented, | ||
resolveSrv: unimplemented, | ||
resolveTxt: unimplemented, | ||
reverse: unimplemented, | ||
setServers: unimplemented | ||
}; | ||
|
||
export default promises; | ||
export { unimplemented as Resolver, unimplemented as getServers, unimplemented as lookup, unimplemented as lookupService, unimplemented as resolve, unimplemented as resolve4, unimplemented as resolve6, unimplemented as resolveAny, unimplemented as resolveCname, unimplemented as resolveMx, unimplemented as resolveNaptr, unimplemented as resolveNs, unimplemented as resolvePtr, unimplemented as resolveSoa, unimplemented as resolveSrv, unimplemented as resolveTxt, unimplemented as reverse, unimplemented as setServers }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
nodelibs/browser/fs-promises.js → nodelibs/browser/fs/promises.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { posix as posix$1 } from '../path.js'; | ||
export { posix } from '../path.js'; | ||
import '../chunk-ff683bf6.js'; | ||
import '../chunk-debdd147.js'; | ||
|
||
const { | ||
resolve, | ||
normalize, | ||
isAbsolute, | ||
join, | ||
relative, | ||
_makeLong, | ||
dirname, | ||
basename, | ||
extname, | ||
format, | ||
parse, | ||
sep, | ||
delimiter, | ||
win32 | ||
} = posix$1; | ||
|
||
var posix = { | ||
resolve, | ||
normalize, | ||
isAbsolute, | ||
join, | ||
relative, | ||
_makeLong, | ||
dirname, | ||
basename, | ||
extname, | ||
format, | ||
parse, | ||
sep, | ||
delimiter, | ||
posix: posix$1, | ||
win32 | ||
}; | ||
|
||
export default posix; | ||
export { _makeLong, basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, parse, relative, resolve, sep, win32 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { posix } from '../path.js'; | ||
export { posix } from '../path.js'; | ||
import '../chunk-ff683bf6.js'; | ||
import '../chunk-debdd147.js'; | ||
|
||
function unimplemented () { | ||
throw new Error('Node.js path/win32 module is not supported by JSPM core in the browser'); | ||
} | ||
|
||
const win32 = { | ||
resolve: unimplemented, | ||
normalize: unimplemented, | ||
isAbsolute: unimplemented, | ||
join: unimplemented, | ||
relative: unimplemented, | ||
_makeLong: unimplemented, | ||
dirname: unimplemented, | ||
basename: unimplemented, | ||
extname: unimplemented, | ||
format: unimplemented, | ||
parse: unimplemented, | ||
sep: unimplemented, | ||
delimiter: unimplemented, | ||
posix, | ||
}; | ||
win32.win32 = win32; | ||
|
||
export default win32; | ||
export { unimplemented as _makeLong, unimplemented as basename, unimplemented as delimiter, unimplemented as dirname, unimplemented as extname, unimplemented as format, unimplemented as isAbsolute, unimplemented as join, unimplemented as normalize, unimplemented as parse, unimplemented as relative, unimplemented as resolve, unimplemented as sep, win32 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { promises } from '../stream.js'; | ||
export { promises as default } from '../stream.js'; | ||
import '../chunk-fc3dcdfd.js'; | ||
import '../chunk-59a7ef50.js'; | ||
import '../chunk-b5c7359e.js'; | ||
import '../chunk-bd86cb5d.js'; | ||
import '../chunk-6cc4de3c.js'; | ||
import '../chunk-debdd147.js'; | ||
import '../util.js'; | ||
|
||
const { finished, pipeline } = promises; | ||
|
||
export { finished, pipeline }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { promisify } from '../util.js'; | ||
import timers from '../timers.js'; | ||
import '../chunk-bd86cb5d.js'; | ||
import '../chunk-6cc4de3c.js'; | ||
import '../chunk-debdd147.js'; | ||
|
||
const setTimeout = promisify(timers.setTimeout), | ||
setImmediate = promisify(timers.setImmediate), | ||
setInterval = promisify(timers.setInterval); | ||
|
||
var promises = { | ||
setTimeout, | ||
setImmediate, | ||
setInterval | ||
}; | ||
|
||
export default promises; | ||
export { setImmediate, setInterval, setTimeout }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { types } from '../util.js'; | ||
export { types as default } from '../util.js'; | ||
import '../chunk-bd86cb5d.js'; | ||
import '../chunk-6cc4de3c.js'; | ||
import '../chunk-debdd147.js'; | ||
|
||
const { | ||
isExternal, | ||
isDate, | ||
isArgumentsObject, | ||
isBigIntObject, | ||
isBooleanObject, | ||
isNumberObject, | ||
isStringObject, | ||
isSymbolObject, | ||
isNativeError, | ||
isRegExp, | ||
isAsyncFunction, | ||
isGeneratorFunction, | ||
isGeneratorObject, | ||
isPromise, | ||
isMap, | ||
isSet, | ||
isMapIterator, | ||
isSetIterator, | ||
isWeakMap, | ||
isWeakSet, | ||
isArrayBuffer, | ||
isDataView, | ||
isSharedArrayBuffer, | ||
isProxy, | ||
isModuleNamespaceObject, | ||
isAnyArrayBuffer, | ||
isBoxedPrimitive, | ||
isArrayBufferView, | ||
isTypedArray, | ||
isUint8Array, | ||
isUint8ClampedArray, | ||
isUint16Array, | ||
isUint32Array, | ||
isInt8Array, | ||
isInt16Array, | ||
isInt32Array, | ||
isFloat32Array, | ||
isFloat64Array, | ||
isBigInt64Array, | ||
isBigUint64Array, | ||
isKeyObject, | ||
isCryptoKey | ||
} = types; | ||
|
||
export { isAnyArrayBuffer, isArgumentsObject, isArrayBuffer, isArrayBufferView, isAsyncFunction, isBigInt64Array, isBigIntObject, isBigUint64Array, isBooleanObject, isBoxedPrimitive, isCryptoKey, isDataView, isDate, isExternal, isFloat32Array, isFloat64Array, isGeneratorFunction, isGeneratorObject, isInt16Array, isInt32Array, isInt8Array, isKeyObject, isMap, isMapIterator, isModuleNamespaceObject, isNativeError, isNumberObject, isPromise, isProxy, isRegExp, isSet, isSetIterator, isSharedArrayBuffer, isStringObject, isSymbolObject, isTypedArray, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isWeakMap, isWeakSet }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { strict } from '../assert.ts'; | ||
|
||
export { | ||
fail, | ||
AssertionError, | ||
ok, | ||
equal, | ||
notEqual, | ||
deepEqual, | ||
notDeepEqual, | ||
deepStrictEqual, | ||
notDeepStrictEqual, | ||
strictEqual, | ||
notStrictEqual, | ||
throws, | ||
rejects, | ||
doesNotThrow, | ||
doesNotReject, | ||
// ifError, | ||
match, | ||
doesNotMatch, | ||
// CallTracker | ||
} from '../assert.ts'; | ||
|
||
export { strict } | ||
export default strict; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
import { notImplemented } from 'https://deno.land/std@0.103.0/node/_utils.ts'; | ||
export * from 'https://deno.land/std@0.103.0/node/fs.ts'; | ||
import fs from 'https://deno.land/std@0.103.0/node/fs.ts'; | ||
import * as promises from './fs/promises.ts'; | ||
|
||
export { promises } | ||
|
||
export function writev () { | ||
notImplemented('fs.writev'); | ||
} | ||
// @ts-ignore | ||
fs.writev = writev; | ||
|
||
fs.promises = promises; | ||
|
||
export default fs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { posix } from 'https://deno.land/std@0.103.0/node/path.ts'; | ||
|
||
export const { | ||
resolve, | ||
normalize, | ||
isAbsolute, | ||
join, | ||
relative, | ||
// _makeLong, | ||
dirname, | ||
basename, | ||
extname, | ||
format, | ||
parse, | ||
sep, | ||
delimiter, | ||
// win32 | ||
} = posix; | ||
|
||
export { posix } | ||
|
||
export default { | ||
resolve, | ||
normalize, | ||
isAbsolute, | ||
join, | ||
relative, | ||
// _makeLong, | ||
dirname, | ||
basename, | ||
extname, | ||
format, | ||
parse, | ||
sep, | ||
delimiter, | ||
posix, | ||
// win32 | ||
}; |
Oops, something went wrong.