@mfdj/tsc-as-build-tool 2.13.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 (35) hide show
  1. package/dist-cjs/{Beacon.js → Beacon.cjs} +1 -1
  2. package/dist-cjs/{Client.js → Client.cjs} +2 -2
  3. package/dist-cjs/{EntryPoint.js → EntryPoint.cjs} +3 -3
  4. package/dist-cjs/{ExperimentationRoot.js → ExperimentationRoot.cjs} +2 -2
  5. package/dist-cjs/http/{ScopedServiceClient.js → ScopedServiceClient.cjs} +6 -6
  6. package/dist-cjs/http/{createEndpoint.js → createEndpoint.cjs} +2 -2
  7. package/dist-cjs/http/{globalFetch.js → globalFetch.cjs} +1 -1
  8. package/dist-cjs/http/{response-parsers.js → response-parsers.cjs} +2 -2
  9. package/dist-cjs/http/{serialize.js → serialize.cjs} +1 -1
  10. package/dist-cjs/http/{serviceFetch.js → serviceFetch.cjs} +3 -3
  11. package/dist-cjs/{index.js → index.cjs} +7 -7
  12. package/dist-cjs/{logging.js → logging.cjs} +1 -1
  13. package/dist-cjs/misc/{arbitrary.js → arbitrary.cjs} +1 -1
  14. package/dist-cjs/misc/{throwAnError.js → throwAnError.cjs} +1 -1
  15. package/dist-cjs/misc/{toLowercase.js → toLowercase.cjs} +1 -1
  16. package/dist-cjs/persistent-storage/{DefaultStore.js → DefaultStore.cjs} +1 -1
  17. package/dist-cjs/{types.js → types.cjs} +1 -1
  18. package/package.json +3 -3
  19. /package/dist-cjs/{Beacon.js.map → Beacon.cjs.map} +0 -0
  20. /package/dist-cjs/{Client.js.map → Client.cjs.map} +0 -0
  21. /package/dist-cjs/{EntryPoint.js.map → EntryPoint.cjs.map} +0 -0
  22. /package/dist-cjs/{ExperimentationRoot.js.map → ExperimentationRoot.cjs.map} +0 -0
  23. /package/dist-cjs/http/{ScopedServiceClient.js.map → ScopedServiceClient.cjs.map} +0 -0
  24. /package/dist-cjs/http/{createEndpoint.js.map → createEndpoint.cjs.map} +0 -0
  25. /package/dist-cjs/http/{globalFetch.js.map → globalFetch.cjs.map} +0 -0
  26. /package/dist-cjs/http/{response-parsers.js.map → response-parsers.cjs.map} +0 -0
  27. /package/dist-cjs/http/{serialize.js.map → serialize.cjs.map} +0 -0
  28. /package/dist-cjs/http/{serviceFetch.js.map → serviceFetch.cjs.map} +0 -0
  29. /package/dist-cjs/{index.js.map → index.cjs.map} +0 -0
  30. /package/dist-cjs/{logging.js.map → logging.cjs.map} +0 -0
  31. /package/dist-cjs/misc/{arbitrary.js.map → arbitrary.cjs.map} +0 -0
  32. /package/dist-cjs/misc/{throwAnError.js.map → throwAnError.cjs.map} +0 -0
  33. /package/dist-cjs/misc/{toLowercase.js.map → toLowercase.cjs.map} +0 -0
  34. /package/dist-cjs/persistent-storage/{DefaultStore.js.map → DefaultStore.cjs.map} +0 -0
  35. /package/dist-cjs/{types.js.map → types.cjs.map} +0 -0
@@ -9,4 +9,4 @@ function BeaconComponent() {
9
9
  function beacon() {
10
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
@@ -2,15 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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.js");
13
+ const Beacon_tsx_1 = require("./Beacon.cjs");
14
14
  Object.defineProperty(exports, "beacon", { enumerable: true, get: function () { return Beacon_tsx_1.beacon; } });
15
15
  function usesCodeThatThrowsAnError({ rethrow } = { rethrow: false }) {
16
16
  try {
@@ -39,4 +39,4 @@ class CaseChanger {
39
39
  }
40
40
  }
41
41
  exports.CaseChanger = CaseChanger;
42
- //# sourceMappingURL=index.js.map
42
+ //# sourceMappingURL=index.cjs.map
@@ -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
  },
@@ -43,6 +43,6 @@
43
43
  "test:watch": "./script/test-watch.sh",
44
44
  "typecheck": "tsc --build --noEmit"
45
45
  },
46
- "version": "2.13.0",
46
+ "version": "2.14.0",
47
47
  "type": "module"
48
48
  }
File without changes
File without changes
File without changes
File without changes
File without changes