@endo/module-source 1.3.0 → 1.3.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/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright [yyyy] [name of copyright owner]
189
+ Copyright 2024 Endo Contributors
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/SECURITY.md CHANGED
@@ -8,9 +8,9 @@ be made for the most recent branch only.
8
8
 
9
9
  ## Coordinated Vulnerability Disclosure of Security Bugs
10
10
 
11
- SES stands for fearless cooperation, and strong security requires strong collaboration with security researchers. If you believe that you have found a security sensitive bug that should not be disclosed until a fix has been made available, we encourage you to report it. To report a bug in HardenedJS, you have several options that include:
11
+ SES stands for fearless cooperation, and strong security requires strong collaboration with security researchers. If you believe that you have found a security sensitive bug that should not be disclosed until a fix has been made available, we encourage you to report it. To report a bug in HardenedJS, you have several options that include:
12
12
 
13
- * Reporting the issue to the [Agoric HackerOne vulnerability rewards program](https://hackerone.com/agoric).
13
+ * Reporting the issue to the [Agoric HackerOne vulnerability rewards program](https://hackerone.com/agoric).
14
14
 
15
15
  * Sending an email to security at (@) agoric.com., encrypted or unencrypted. To encrypt, please use @Warner’s personal GPG key [A476E2E6 11880C98 5B3C3A39 0386E81B 11CAA07A](http://www.lothar.com/warner-gpg.html) .
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@endo/module-source",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Ponyfill for the SES ModuleSource and module-to-program transformer",
5
5
  "keywords": [
6
6
  "ses",
@@ -46,20 +46,20 @@
46
46
  "@babel/parser": "~7.26.2",
47
47
  "@babel/traverse": "~7.25.9",
48
48
  "@babel/types": "~7.26.0",
49
- "ses": "^1.12.0"
49
+ "ses": "^1.13.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "ava": "^6.1.3",
53
53
  "babel-eslint": "^10.1.0",
54
54
  "benchmark": "^2.1.4",
55
55
  "c8": "^7.14.0",
56
- "eslint": "^8.57.0",
56
+ "eslint": "^8.57.1",
57
57
  "eslint-config-airbnb-base": "^15.0.0",
58
58
  "eslint-config-prettier": "^9.1.0",
59
59
  "eslint-plugin-eslint-comments": "^3.2.0",
60
- "eslint-plugin-import": "^2.29.1",
61
- "prettier": "^3.3.3",
62
- "typescript": "~5.6.3"
60
+ "eslint-plugin-import": "^2.31.0",
61
+ "prettier": "^3.5.3",
62
+ "typescript": "~5.8.3"
63
63
  },
64
64
  "files": [
65
65
  "./*.d.ts",
@@ -89,5 +89,5 @@
89
89
  "typeCoverage": {
90
90
  "atLeast": 40.33
91
91
  },
92
- "gitHead": "9b6784831d37db948cdd61f6da1f3489e8f97906"
92
+ "gitHead": "571b7803cf10df7cb4fa9d70e4d53a0b53767fa8"
93
93
  }
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin.d.ts","sourceRoot":"","sources":["babel-plugin.js"],"names":[],"mappings":";AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+kBC"}
1
+ {"version":3,"file":"babel-plugin.d.ts","sourceRoot":"","sources":["babel-plugin.js"],"names":[],"mappings":";AA0CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+kBC"}
@@ -31,6 +31,8 @@ const collectPatternIdentifiers = (path, pattern) => {
31
31
  // Non-elided pattern.
32
32
  return collectPatternIdentifiers(path, pat);
33
33
  });
34
+ case 'AssignmentPattern':
35
+ return collectPatternIdentifiers(path, pattern.left);
34
36
  default:
35
37
  throw path.buildCodeFrameError(
36
38
  `Pattern type ${pattern.type} is not recognized`,
package/src/hidden.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export const HIDDEN_PREFIX: "$h͏_";
2
- export const HIDDEN_CONST_VAR_PREFIX: "$c͏_";
1
+ export const HIDDEN_PREFIX: "$h\u034F_";
2
+ export const HIDDEN_CONST_VAR_PREFIX: "$c\u034F_";
3
3
  export const HIDDEN_A: "$h͏_a";
4
4
  export const HIDDEN_IMPORT: "$h͏_import";
5
5
  export const HIDDEN_IMPORT_SELF: "$h͏_importSelf";
@@ -1 +1 @@
1
- {"version":3,"file":"hidden.d.ts","sourceRoot":"","sources":["hidden.js"],"names":[],"mappings":"AAAA,mCAAyC;AACzC,6CAAmD;AACnD,+BAA4C;AAC5C,yCAAsD;AACtD,kDAA+D;AAC/D,2CAAwD;AACxD,qCAAkD;AAGlD,wCAAqD;AACrD,qCAAkD;AAClD,0CAQE"}
1
+ {"version":3,"file":"hidden.d.ts","sourceRoot":"","sources":["hidden.js"],"names":[],"mappings":"AAAA,4BAA6B,WAAW,CAAC;AACzC,sCAAuC,WAAW,CAAC;AACnD,+BAA4C;AAC5C,yCAAsD;AACtD,kDAA+D;AAC/D,2CAAwD;AACxD,qCAAkD;AAGlD,wCAAqD;AACrD,qCAAkD;AAClD,0CAQE"}
@@ -25,7 +25,7 @@
25
25
  * @param {string} source
26
26
  * @param {string | Options} [opts]
27
27
  */
28
- export function ModuleSource(source: string, opts?: string | Options | undefined): void;
28
+ export function ModuleSource(source: string, opts?: string | Options): void;
29
29
  export class ModuleSource {
30
30
  /**
31
31
  * @typedef {object} SourceMapHookDetails
@@ -54,7 +54,7 @@ export class ModuleSource {
54
54
  * @param {string} source
55
55
  * @param {string | Options} [opts]
56
56
  */
57
- constructor(source: string, opts?: string | Options | undefined);
57
+ constructor(source: string, opts?: string | Options);
58
58
  imports: string[];
59
59
  exports: any[];
60
60
  reexports: never[];
@@ -1 +1 @@
1
- {"version":3,"file":"module-source.d.ts","sourceRoot":"","sources":["module-source.js"],"names":[],"mappings":"AAmCA;;;;;;GAMG;AAEH;;;;GAIG;AAEH;;;;;;GAMG;AAKH;;;;;;;GAOG;AACH,qCAHW,MAAM,6CAsChB;;IApED;;;;;;OAMG;IAEH;;;;OAIG;IAEH;;;;;;OAMG;IAKH;;;;;;;OAOG;IACH,oBAHW,MAAM,uCAsChB;IAhBC,kBAAyC;IACzC,eAMC;IACD,mBAA+C;IAC/C,8BAA0C;IAC1C,uBAAsC;IACtC,qBAAkC;IAClC,wBAAwC;IACxC,yBAAkC;IAClC,6BAA0C;;;iBAhE9B,MAAM;YACN,MAAM;cACN,MAAM;YACN,MAAM;;wCAKT,MAAM,WACN,oBAAoB"}
1
+ {"version":3,"file":"module-source.d.ts","sourceRoot":"","sources":["module-source.js"],"names":[],"mappings":"AAmCA;;;;;;GAMG;AAEH;;;;GAIG;AAEH;;;;;;GAMG;AAKH;;;;;;;GAOG;AACH,qCAHW,MAAM,SACN,MAAM,GAAG,OAAO,QAqC1B;;IApED;;;;;;OAMG;IAEH;;;;OAIG;IAEH;;;;;;OAMG;IAKH;;;;;;;OAOG;IACH,oBAHW,MAAM,SACN,MAAM,GAAG,OAAO,EAqC1B;IAhBC,kBAAyC;IACzC,eAMC;IACD,mBAA+C;IAC/C,8BAA0C;IAC1C,uBAAsC;IACtC,qBAAkC;IAClC,wBAAwC;IACxC,yBAAkC;IAClC,6BAA0C;;;iBAhE9B,MAAM;YACN,MAAM;cACN,MAAM;YACN,MAAM;;wCAKT,MAAM,WACN,oBAAoB"}