@mfdj/tsc-as-build-tool 2.12.0 → 2.14.0

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.
Files changed (43) hide show
  1. package/dist/Beacon.js +1 -1
  2. package/dist/index.d.ts +2 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist-cjs/{Beacon.js → Beacon.cjs} +2 -2
  7. package/dist-cjs/{Client.js → Client.cjs} +2 -2
  8. package/dist-cjs/{EntryPoint.js → EntryPoint.cjs} +3 -3
  9. package/dist-cjs/{ExperimentationRoot.js → ExperimentationRoot.cjs} +2 -2
  10. package/dist-cjs/http/{ScopedServiceClient.js → ScopedServiceClient.cjs} +6 -6
  11. package/dist-cjs/http/{createEndpoint.js → createEndpoint.cjs} +2 -2
  12. package/dist-cjs/http/{globalFetch.js → globalFetch.cjs} +1 -1
  13. package/dist-cjs/http/{response-parsers.js → response-parsers.cjs} +2 -2
  14. package/dist-cjs/http/{serialize.js → serialize.cjs} +1 -1
  15. package/dist-cjs/http/{serviceFetch.js → serviceFetch.cjs} +3 -3
  16. package/dist-cjs/{index.js → index.cjs} +9 -7
  17. package/dist-cjs/index.cjs.map +1 -0
  18. package/dist-cjs/index.d.ts +2 -1
  19. package/dist-cjs/index.d.ts.map +1 -1
  20. package/dist-cjs/{logging.js → logging.cjs} +1 -1
  21. package/dist-cjs/misc/{arbitrary.js → arbitrary.cjs} +1 -1
  22. package/dist-cjs/misc/{throwAnError.js → throwAnError.cjs} +1 -1
  23. package/dist-cjs/misc/{toLowercase.js → toLowercase.cjs} +1 -1
  24. package/dist-cjs/persistent-storage/{DefaultStore.js → DefaultStore.cjs} +1 -1
  25. package/dist-cjs/{types.js → types.cjs} +1 -1
  26. package/package.json +4 -4
  27. package/dist-cjs/index.js.map +0 -1
  28. /package/dist-cjs/{Beacon.js.map → Beacon.cjs.map} +0 -0
  29. /package/dist-cjs/{Client.js.map → Client.cjs.map} +0 -0
  30. /package/dist-cjs/{EntryPoint.js.map → EntryPoint.cjs.map} +0 -0
  31. /package/dist-cjs/{ExperimentationRoot.js.map → ExperimentationRoot.cjs.map} +0 -0
  32. /package/dist-cjs/http/{ScopedServiceClient.js.map → ScopedServiceClient.cjs.map} +0 -0
  33. /package/dist-cjs/http/{createEndpoint.js.map → createEndpoint.cjs.map} +0 -0
  34. /package/dist-cjs/http/{globalFetch.js.map → globalFetch.cjs.map} +0 -0
  35. /package/dist-cjs/http/{response-parsers.js.map → response-parsers.cjs.map} +0 -0
  36. /package/dist-cjs/http/{serialize.js.map → serialize.cjs.map} +0 -0
  37. /package/dist-cjs/http/{serviceFetch.js.map → serviceFetch.cjs.map} +0 -0
  38. /package/dist-cjs/{logging.js.map → logging.cjs.map} +0 -0
  39. /package/dist-cjs/misc/{arbitrary.js.map → arbitrary.cjs.map} +0 -0
  40. /package/dist-cjs/misc/{throwAnError.js.map → throwAnError.cjs.map} +0 -0
  41. /package/dist-cjs/misc/{toLowercase.js.map → toLowercase.cjs.map} +0 -0
  42. /package/dist-cjs/persistent-storage/{DefaultStore.js.map → DefaultStore.cjs.map} +0 -0
  43. /package/dist-cjs/{types.js.map → types.cjs.map} +0 -0
package/dist/Beacon.js CHANGED
@@ -3,6 +3,6 @@ export function BeaconComponent() {
3
3
  return _jsx("h1", { children: beacon() });
4
4
  }
5
5
  export function beacon() {
6
- return 'Beacon: 👨🏻‍🔬 default 🧐';
6
+ return 'Beacon: 👨🏻‍🔬 ESM 🧐';
7
7
  }
8
8
  //# sourceMappingURL=Beacon.js.map
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { EntryPoint } from "./EntryPoint.tsx";
2
2
  import { enableLogging } from "./logging.ts";
3
3
  import { Client } from "./Client.ts";
4
- export { Client, EntryPoint, enableLogging };
4
+ import { beacon } from "./Beacon.tsx";
5
+ export { Client, EntryPoint, enableLogging, beacon };
5
6
  export declare function usesCodeThatThrowsAnError({ rethrow }?: {
6
7
  rethrow: boolean;
7
8
  }): void | Error;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACd,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,EAAE,OAAO,EAAE,GAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAuB,GACrD,IAAI,GAAG,KAAK,CAkBd;AAED,qBAAa,WAAW;IAEtB,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIrC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAG1C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACb,MAAM,EACP,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,EAAE,OAAO,EAAE,GAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAuB,GACrD,IAAI,GAAG,KAAK,CAkBd;AAED,qBAAa,WAAW;IAEtB,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIrC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAG1C"}
package/dist/index.js CHANGED
@@ -3,7 +3,8 @@ import { toLowercase } from "./misc/toLowercase.js";
3
3
  import { EntryPoint } from "./EntryPoint.js";
4
4
  import { enableLogging } from "./logging.js";
5
5
  import { Client } from "./Client.js";
6
- export { Client, EntryPoint, enableLogging };
6
+ import { beacon } from "./Beacon.js";
7
+ export { Client, EntryPoint, enableLogging, beacon };
7
8
  export function usesCodeThatThrowsAnError({ rethrow } = { rethrow: false }) {
8
9
  try {
9
10
  throwAnError();
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACd,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,EAAE,OAAO,KAA2B,EAAE,OAAO,EAAE,KAAK,EAAE;IAEtD,IAAI,CAAC;QACH,YAAY,EAAE,CAAC;IACjB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,KAAK,GAAY,CAAC,CAAC;QACzB,sEAAsE;QACtE,MAAM,SAAS,GAAG,IAAI,KAAK,CAAC,0CAA0C,EAAE;YACtE,KAAK;SACN,CAAC,CAAC;QAEH,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,SAAS,CAAC;QAClB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;AACT,CAAC;AAED,MAAM,OAAO,WAAW;IACtB,sCAAsC;IACtC,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,KAAa;QAC9B,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAc,CAAA;AAErC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACb,MAAM,EACP,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,EAAE,OAAO,KAA2B,EAAE,OAAO,EAAE,KAAK,EAAE;IAEtD,IAAI,CAAC;QACH,YAAY,EAAE,CAAC;IACjB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,KAAK,GAAY,CAAC,CAAC;QACzB,sEAAsE;QACtE,MAAM,SAAS,GAAG,IAAI,KAAK,CAAC,0CAA0C,EAAE;YACtE,KAAK;SACN,CAAC,CAAC;QAEH,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,SAAS,CAAC;QAClB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;AACT,CAAC;AAED,MAAM,OAAO,WAAW;IACtB,sCAAsC;IACtC,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,KAAa;QAC9B,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF"}
@@ -7,6 +7,6 @@ function BeaconComponent() {
7
7
  return (0, jsx_runtime_1.jsx)("h1", { children: beacon() });
8
8
  }
9
9
  function beacon() {
10
- return 'Beacon: 👨🏻‍🔬 default 🧐';
10
+ return 'Beacon: 👨🏻‍🔬 CommonJS 🧐';
11
11
  }
12
- //# sourceMappingURL=Beacon.js.map
12
+ //# sourceMappingURL=Beacon.cjs.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
- const ScopedServiceClient_ts_1 = require("./http/ScopedServiceClient.js");
4
+ const ScopedServiceClient_ts_1 = require("./http/ScopedServiceClient.cjs");
5
5
  class Client {
6
6
  accountClient;
7
7
  userClient;
@@ -17,4 +17,4 @@ class Client {
17
17
  }
18
18
  }
19
19
  exports.Client = Client;
20
- //# sourceMappingURL=Client.js.map
20
+ //# sourceMappingURL=Client.cjs.map
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EntryPoint = EntryPoint;
4
4
  exports.entryPointParser = entryPointParser;
5
5
  const react_1 = require("react");
6
- const logging_ts_1 = require("./logging.js");
7
- const Client_ts_1 = require("./Client.js");
6
+ const logging_ts_1 = require("./logging.cjs");
7
+ const Client_ts_1 = require("./Client.cjs");
8
8
  const serviceClient = new Client_ts_1.Client(); // TODO: fetch from container/store
9
9
  function EntryPoint({ children, ...props }) {
10
10
  const configs = entryPointParser(props);
@@ -73,4 +73,4 @@ function entryPointParser(props) {
73
73
  }
74
74
  return configs;
75
75
  }
76
- //# sourceMappingURL=EntryPoint.js.map
76
+ //# sourceMappingURL=EntryPoint.cjs.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExperimentationRoot = ExperimentationRoot;
4
4
  const react_1 = require("react");
5
- const logging_ts_1 = require("./logging.js");
5
+ const logging_ts_1 = require("./logging.cjs");
6
6
  function ExperimentationRoot({ children, ...props }) {
7
7
  const { disableHydration = false, hasVerboseLogs = false, applicationName, } = props;
8
8
  const hasVerboseLogsRef = (0, react_1.useRef)(hasVerboseLogs);
@@ -24,4 +24,4 @@ function initialize(a) {
24
24
  function hydrate(a) {
25
25
  (0, logging_ts_1.debug)(`TODO: hydrate - ${a}`);
26
26
  }
27
- //# sourceMappingURL=ExperimentationRoot.js.map
27
+ //# sourceMappingURL=ExperimentationRoot.cjs.map
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ScopedServiceClient = void 0;
4
- const logging_ts_1 = require("../logging.js");
5
- const createEndpoint_ts_1 = require("./createEndpoint.js");
6
- const response_parsers_ts_1 = require("./response-parsers.js");
7
- const serviceFetch_ts_1 = require("./serviceFetch.js");
8
- const serialize_ts_1 = require("./serialize.js");
4
+ const logging_ts_1 = require("../logging.cjs");
5
+ const createEndpoint_ts_1 = require("./createEndpoint.cjs");
6
+ const response_parsers_ts_1 = require("./response-parsers.cjs");
7
+ const serviceFetch_ts_1 = require("./serviceFetch.cjs");
8
+ const serialize_ts_1 = require("./serialize.cjs");
9
9
  class ScopedServiceClient {
10
10
  scope;
11
11
  host;
@@ -61,4 +61,4 @@ class ScopedServiceClient {
61
61
  }
62
62
  }
63
63
  exports.ScopedServiceClient = ScopedServiceClient;
64
- //# sourceMappingURL=ScopedServiceClient.js.map
64
+ //# sourceMappingURL=ScopedServiceClient.cjs.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createEndpoint = createEndpoint;
4
- const logging_ts_1 = require("../logging.js");
4
+ const logging_ts_1 = require("../logging.cjs");
5
5
  function createEndpoint(type, resource, options) {
6
6
  const { host, experiment } = options || {};
7
7
  const url = host ? new URL(host) : null;
@@ -12,4 +12,4 @@ function createEndpoint(type, resource, options) {
12
12
  }
13
13
  return `${finalHost}/api/services/experiments/${type}/experiments/${resource}`;
14
14
  }
15
- //# sourceMappingURL=createEndpoint.js.map
15
+ //# sourceMappingURL=createEndpoint.cjs.map
@@ -12,4 +12,4 @@ async function globalFetch(...args) {
12
12
  return response;
13
13
  });
14
14
  }
15
- //# sourceMappingURL=globalFetch.js.map
15
+ //# sourceMappingURL=globalFetch.cjs.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parseParticipation = parseParticipation;
4
- const logging_ts_1 = require("../logging.js");
4
+ const logging_ts_1 = require("../logging.cjs");
5
5
  function parseParticipation(experimentName, result) {
6
6
  if (!result || result instanceof Response || result.inactive) {
7
7
  (0, logging_ts_1.debug)("result parsed as inactive", result);
@@ -24,4 +24,4 @@ function parseParticipation(experimentName, result) {
24
24
  variation: result.variation,
25
25
  };
26
26
  }
27
- //# sourceMappingURL=response-parsers.js.map
27
+ //# sourceMappingURL=response-parsers.cjs.map
@@ -25,4 +25,4 @@ function serializeParticipationRequest(customFilters, filterGroups) {
25
25
  }
26
26
  return request;
27
27
  }
28
- //# sourceMappingURL=serialize.js.map
28
+ //# sourceMappingURL=serialize.cjs.map
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.serviceFetch = serviceFetch;
4
- const logging_ts_1 = require("../logging.js");
5
- const globalFetch_ts_1 = require("./globalFetch.js");
4
+ const logging_ts_1 = require("../logging.cjs");
5
+ const globalFetch_ts_1 = require("./globalFetch.cjs");
6
6
  async function serviceFetch(endpoint, options) {
7
7
  const { skipJson = false, ...fetchOptions } = options ?? {};
8
8
  try {
@@ -22,4 +22,4 @@ async function serviceFetch(endpoint, options) {
22
22
  return null;
23
23
  }
24
24
  }
25
- //# sourceMappingURL=serviceFetch.js.map
25
+ //# sourceMappingURL=serviceFetch.cjs.map
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CaseChanger = exports.enableLogging = exports.EntryPoint = exports.Client = void 0;
3
+ exports.CaseChanger = exports.beacon = exports.enableLogging = exports.EntryPoint = exports.Client = void 0;
4
4
  exports.usesCodeThatThrowsAnError = usesCodeThatThrowsAnError;
5
- const throwAnError_ts_1 = require("./misc/throwAnError.js");
6
- const toLowercase_ts_1 = require("./misc/toLowercase.js");
7
- const EntryPoint_tsx_1 = require("./EntryPoint.js");
5
+ const throwAnError_ts_1 = require("./misc/throwAnError.cjs");
6
+ const toLowercase_ts_1 = require("./misc/toLowercase.cjs");
7
+ const EntryPoint_tsx_1 = require("./EntryPoint.cjs");
8
8
  Object.defineProperty(exports, "EntryPoint", { enumerable: true, get: function () { return EntryPoint_tsx_1.EntryPoint; } });
9
- const logging_ts_1 = require("./logging.js");
9
+ const logging_ts_1 = require("./logging.cjs");
10
10
  Object.defineProperty(exports, "enableLogging", { enumerable: true, get: function () { return logging_ts_1.enableLogging; } });
11
- const Client_ts_1 = require("./Client.js");
11
+ const Client_ts_1 = require("./Client.cjs");
12
12
  Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return Client_ts_1.Client; } });
13
+ const Beacon_tsx_1 = require("./Beacon.cjs");
14
+ Object.defineProperty(exports, "beacon", { enumerable: true, get: function () { return Beacon_tsx_1.beacon; } });
13
15
  function usesCodeThatThrowsAnError({ rethrow } = { rethrow: false }) {
14
16
  try {
15
17
  (0, throwAnError_ts_1.throwAnError)();
@@ -37,4 +39,4 @@ class CaseChanger {
37
39
  }
38
40
  }
39
41
  exports.CaseChanger = CaseChanger;
40
- //# sourceMappingURL=index.js.map
42
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAcA,8DAoBC;AAlCD,4DAAsD;AACtD,0DAAoD;AACpD,oDAA8C;AAO5C,2FAPO,2BAAU,OAOP;AANZ,6CAA6C;AAO3C,8FAPO,0BAAa,OAOP;AANf,2CAAoC;AAIlC,uFAJO,kBAAM,OAIP;AAHR,4CAAqC;AAMnC,uFANO,mBAAM,OAMP;AAGR,SAAgB,yBAAyB,CACvC,EAAE,OAAO,KAA2B,EAAE,OAAO,EAAE,KAAK,EAAE;IAEtD,IAAI,CAAC;QACH,IAAA,8BAAY,GAAE,CAAC;IACjB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,KAAK,GAAY,CAAC,CAAC;QACzB,sEAAsE;QACtE,MAAM,SAAS,GAAG,IAAI,KAAK,CAAC,0CAA0C,EAAE;YACtE,KAAK;SACN,CAAC,CAAC;QAEH,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,SAAS,CAAC;QAClB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;AACT,CAAC;AAED,MAAa,WAAW;IACtB,sCAAsC;IACtC,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,IAAA,4BAAW,EAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,KAAa;QAC9B,OAAO,IAAA,4BAAW,EAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF;AATD,kCASC"}
@@ -1,7 +1,8 @@
1
1
  import { EntryPoint } from "./EntryPoint.tsx";
2
2
  import { enableLogging } from "./logging.ts";
3
3
  import { Client } from "./Client.ts";
4
- export { Client, EntryPoint, enableLogging };
4
+ import { beacon } from "./Beacon.tsx";
5
+ export { Client, EntryPoint, enableLogging, beacon };
5
6
  export declare function usesCodeThatThrowsAnError({ rethrow }?: {
6
7
  rethrow: boolean;
7
8
  }): void | Error;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACd,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,EAAE,OAAO,EAAE,GAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAuB,GACrD,IAAI,GAAG,KAAK,CAkBd;AAED,qBAAa,WAAW;IAEtB,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIrC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAG1C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACb,MAAM,EACP,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,EAAE,OAAO,EAAE,GAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAuB,GACrD,IAAI,GAAG,KAAK,CAkBd;AAED,qBAAa,WAAW;IAEtB,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIrC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAG1C"}
@@ -132,4 +132,4 @@ function configureLogging(channels = "default") {
132
132
  }
133
133
  });
134
134
  }
135
- //# sourceMappingURL=logging.js.map
135
+ //# sourceMappingURL=logging.cjs.map
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.something = void 0;
4
4
  exports.something = 'some new value';
5
- //# sourceMappingURL=arbitrary.js.map
5
+ //# sourceMappingURL=arbitrary.cjs.map
@@ -4,4 +4,4 @@ exports.throwAnError = throwAnError;
4
4
  function throwAnError() {
5
5
  throw new Error("custom-error");
6
6
  }
7
- //# sourceMappingURL=throwAnError.js.map
7
+ //# sourceMappingURL=throwAnError.cjs.map
@@ -25,4 +25,4 @@ function toLowercase(input) {
25
25
  }
26
26
  return output;
27
27
  }
28
- //# sourceMappingURL=toLowercase.js.map
28
+ //# sourceMappingURL=toLowercase.cjs.map
@@ -24,4 +24,4 @@ class DefaultStore {
24
24
  }
25
25
  }
26
26
  exports.DefaultStore = DefaultStore;
27
- //# sourceMappingURL=DefaultStore.js.map
27
+ //# sourceMappingURL=DefaultStore.cjs.map
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CREATED_KEY = void 0;
4
4
  // import { CREATED_KEY } from "./experiments-store";
5
5
  exports.CREATED_KEY = "ls:created";
6
- //# sourceMappingURL=types.js.map
6
+ //# sourceMappingURL=types.cjs.map
package/package.json CHANGED
@@ -14,11 +14,11 @@
14
14
  },
15
15
  "exports": {
16
16
  ".": {
17
- "require": "./dist-cjs/index.js",
17
+ "require": "./dist-cjs/index.cjs",
18
18
  "default": "./dist/index.js"
19
19
  },
20
20
  "./*.js": {
21
- "require": "./dist-cjs/*.js",
21
+ "require": "./dist-cjs/*.cjs",
22
22
  "default": "./dist/*.js"
23
23
  }
24
24
  },
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "private": false,
37
37
  "scripts": {
38
- "build": "rm -rf dist/*; tsc --project tsconfig.json && tsc --project tsconfig.cjs.json",
38
+ "build": "./script/build.sh",
39
39
  "prepare": "npm run build",
40
40
  "preversion": "npm run typecheck",
41
41
  "server-start": "php -S localhost:3000 ./script/server.php",
@@ -43,6 +43,6 @@
43
43
  "test:watch": "./script/test-watch.sh",
44
44
  "typecheck": "tsc --build --noEmit"
45
45
  },
46
- "version": "2.12.0",
46
+ "version": "2.14.0",
47
47
  "type": "module"
48
48
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAYA,8DAoBC;AAhCD,4DAAsD;AACtD,0DAAoD;AACpD,oDAA8C;AAM5C,2FANO,2BAAU,OAMP;AALZ,6CAA6C;AAM3C,8FANO,0BAAa,OAMP;AALf,2CAAoC;AAGlC,uFAHO,kBAAM,OAGP;AAKR,SAAgB,yBAAyB,CACvC,EAAE,OAAO,KAA2B,EAAE,OAAO,EAAE,KAAK,EAAE;IAEtD,IAAI,CAAC;QACH,IAAA,8BAAY,GAAE,CAAC;IACjB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,KAAK,GAAY,CAAC,CAAC;QACzB,sEAAsE;QACtE,MAAM,SAAS,GAAG,IAAI,KAAK,CAAC,0CAA0C,EAAE;YACtE,KAAK;SACN,CAAC,CAAC;QAEH,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,SAAS,CAAC;QAClB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;AACT,CAAC;AAED,MAAa,WAAW;IACtB,sCAAsC;IACtC,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,IAAA,4BAAW,EAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,KAAa;QAC9B,OAAO,IAAA,4BAAW,EAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF;AATD,kCASC"}
File without changes
File without changes
File without changes
File without changes