ses 1.9.0 → 1.9.1
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/README.md +1 -1
- package/dist/lockdown.cjs +20 -13
- package/dist/lockdown.mjs +20 -13
- package/dist/lockdown.umd.js +20 -13
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +20 -13
- package/dist/ses.mjs +20 -13
- package/dist/ses.umd.js +20 -13
- package/dist/ses.umd.min.js +1 -1
- package/package.json +5 -5
- package/src/compartment-shim.js +0 -2
- package/src/error/assert.js +1 -0
- package/src/error/console.js +5 -2
- package/src/error/internal-types.js +4 -0
- package/src/error/note-log-args.js +4 -1
- package/src/error/tame-console.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ses",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Hardened JavaScript for Fearless Cooperation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lockdown",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"@endo/env-options": "^1.1.7"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@endo/compartment-mapper": "^1.3.
|
|
85
|
-
"@endo/module-source": "^1.1.
|
|
86
|
-
"@endo/test262-runner": "^0.1.
|
|
84
|
+
"@endo/compartment-mapper": "^1.3.1",
|
|
85
|
+
"@endo/module-source": "^1.1.1",
|
|
86
|
+
"@endo/test262-runner": "^0.1.42",
|
|
87
87
|
"ava": "^6.1.3",
|
|
88
88
|
"babel-eslint": "^10.1.0",
|
|
89
89
|
"c8": "^7.14.0",
|
|
@@ -203,5 +203,5 @@
|
|
|
203
203
|
"typeCoverage": {
|
|
204
204
|
"atLeast": 81.17
|
|
205
205
|
},
|
|
206
|
-
"gitHead": "
|
|
206
|
+
"gitHead": "c242c28a68d1af29475150e44b5f3e9d0feda8cd"
|
|
207
207
|
}
|
package/src/compartment-shim.js
CHANGED
package/src/error/assert.js
CHANGED
|
@@ -48,6 +48,7 @@ import { makeNoteLogArgsArrayKit } from './note-log-args.js';
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* @import {BaseAssert, Assert, AssertionFunctions, AssertionUtilities, StringablePayload, DetailsToken, MakeAssert} from '../../types.js'
|
|
51
|
+
* @import {LogArgs, NoteCallback, LoggedErrorHandler} from "./internal-types.js";
|
|
51
52
|
*/
|
|
52
53
|
|
|
53
54
|
// For our internal debugging purposes, uncomment
|
package/src/error/console.js
CHANGED
|
@@ -22,8 +22,11 @@ import {
|
|
|
22
22
|
weaksetAdd,
|
|
23
23
|
weaksetHas,
|
|
24
24
|
} from '../commons.js';
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @import {FilterConsole, LogSeverity, VirtualConsole} from './types.js'
|
|
28
|
+
* @import {ErrorInfo, ErrorInfoKind, LogRecord, NoteCallback, LoggedErrorHandler, MakeCausalConsole, MakeLoggingConsoleKit} from "./internal-types.js";
|
|
29
|
+
*/
|
|
27
30
|
|
|
28
31
|
// For our internal debugging purposes, uncomment
|
|
29
32
|
// const internalDebugConsole = console;
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
/* eslint-disable no-restricted-globals */
|
|
4
4
|
|
|
5
5
|
import { makeLRUCacheMap } from '../make-lru-cachemap.js';
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @import {LogArgs} from './internal-types.js';
|
|
9
|
+
*/
|
|
7
10
|
|
|
8
11
|
const { freeze } = Object;
|
|
9
12
|
const { isSafeInteger } = Number;
|
|
@@ -11,8 +11,11 @@ import {
|
|
|
11
11
|
import { loggedErrorHandler as defaultHandler } from './assert.js';
|
|
12
12
|
import { makeCausalConsole } from './console.js';
|
|
13
13
|
import { makeRejectionHandlers } from './unhandled-rejection.js';
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @import {VirtualConsole} from './types.js'
|
|
17
|
+
* @import {GetStackString} from './internal-types.js';
|
|
18
|
+
*/
|
|
16
19
|
|
|
17
20
|
const failFast = message => {
|
|
18
21
|
throw TypeError(message);
|