@hexclave/sc 1.0.40 → 1.0.42

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.
@@ -1,5 +1,5 @@
1
- import * as def from "./index.default";
2
- import * as reactServer from "./index.react-server";
1
+ import * as def from "./index.default.js";
2
+ import * as reactServer from "./index.react-server.js";
3
3
 
4
4
  //#region src/index.combined.d.ts
5
5
  declare const cookies: typeof reactServer.cookies | typeof def.cookies;
@@ -1 +1 @@
1
- {"version":3,"file":"index.combined.d.ts","names":[],"sources":["../../src/index.combined.ts"],"mappings":";;;;cAGqB,OAAA,SAAgB,WAAA,CAAY,OAAA,UAAiB,GAAA,CAAI,OAAA;AAAA,cACjD,OAAA,SAAgB,WAAA,CAAY,OAAA,UAAiB,GAAA,CAAI,OAAA;AAAA,cACjD,aAAA"}
1
+ {"version":3,"file":"index.combined.d.ts","names":[],"sources":["../../src/index.combined.ts"],"mappings":";;;;cAGqB,OAAA,SAAgB,WAAA,CAAY,OAAA,UAAiB,GAAA,CAAI,OAAO;AAAA,cACxD,OAAA,SAAgB,WAAA,CAAY,OAAA,UAAiB,GAAA,CAAI,OAAO;AAAA,cACxD,aAAA"}
@@ -1 +1 @@
1
- export { };
1
+ export {};
@@ -2,7 +2,7 @@
2
2
  const cookies = void 0;
3
3
  const headers = void 0;
4
4
  const isReactServer = false;
5
-
6
5
  //#endregion
7
6
  export { cookies, headers, isReactServer };
7
+
8
8
  //# sourceMappingURL=index.default.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.default.js","names":[],"sources":["../../src/index.default.ts"],"sourcesContent":["export const cookies = undefined;\nexport const headers = undefined;\nexport const isReactServer = false;\n"],"mappings":";AAAA,MAAa,UAAU;AACvB,MAAa,UAAU;AACvB,MAAa,gBAAgB"}
1
+ {"version":3,"file":"index.default.js","names":[],"sources":["../../src/index.default.ts"],"sourcesContent":["export const cookies = undefined;\nexport const headers = undefined;\nexport const isReactServer = false;\n"],"mappings":";AAAA,MAAa,UAAU,KAAA;AACvB,MAAa,UAAU,KAAA;AACvB,MAAa,gBAAgB"}
@@ -1,4 +1,4 @@
1
- import { cookies as cookies$1, headers as headers$1 } from "./next-static-analysis-workaround";
1
+ import { cookies as cookies$1, headers as headers$1 } from "./next-static-analysis-workaround.js";
2
2
 
3
3
  //#region src/index.react-server.d.ts
4
4
  declare const isReactServer = true;
@@ -1,10 +1,9 @@
1
1
  import { cookies as cookies$1, headers as headers$1 } from "./next-static-analysis-workaround.js";
2
-
3
2
  //#region src/index.react-server.ts
4
3
  const isReactServer = true;
5
4
  const cookies = cookies$1;
6
5
  const headers = headers$1;
7
-
8
6
  //#endregion
9
7
  export { cookies, headers, isReactServer };
8
+
10
9
  //# sourceMappingURL=index.react-server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.react-server.js","names":["nextCookies","nextHeaders"],"sources":["../../src/index.react-server.ts"],"sourcesContent":["export const isReactServer = true;\n\n\n// In Next.js 15, the `next/headers` module returns async functions.\n// Since we support both Next.js 14 and 15, we return a union of the two.\n// TODO: Remove this once we drop support for Next.js 14, and replace it with `export { cookies, headers } from 'next/headers';`\n// https://nextjs.org/blog/next-15#async-request-apis-breaking-change\nimport { cookies as nextCookies, headers as nextHeaders } from './next-static-analysis-workaround';\nexport const cookies = nextCookies as typeof nextCookies | ((...args: Parameters<typeof nextCookies>) => Promise<ReturnType<typeof nextCookies>>);\nexport const headers = nextHeaders as typeof nextHeaders | ((...args: Parameters<typeof nextHeaders>) => Promise<ReturnType<typeof nextHeaders>>);\n"],"mappings":";;;AAAA,MAAa,gBAAgB;AAQ7B,MAAa,UAAUA;AACvB,MAAa,UAAUC"}
1
+ {"version":3,"file":"index.react-server.js","names":["nextCookies","nextHeaders"],"sources":["../../src/index.react-server.ts"],"sourcesContent":["export const isReactServer = true;\n\n\n// In Next.js 15, the `next/headers` module returns async functions.\n// Since we support both Next.js 14 and 15, we return a union of the two.\n// TODO: Remove this once we drop support for Next.js 14, and replace it with `export { cookies, headers } from 'next/headers';`\n// https://nextjs.org/blog/next-15#async-request-apis-breaking-change\nimport { cookies as nextCookies, headers as nextHeaders } from './next-static-analysis-workaround';\nexport const cookies = nextCookies as typeof nextCookies | ((...args: Parameters<typeof nextCookies>) => Promise<ReturnType<typeof nextCookies>>);\nexport const headers = nextHeaders as typeof nextHeaders | ((...args: Parameters<typeof nextHeaders>) => Promise<ReturnType<typeof nextHeaders>>);\n"],"mappings":";;AAAA,MAAa,gBAAgB;AAQ7B,MAAa,UAAUA;AACvB,MAAa,UAAUC"}
@@ -1,3 +1,2 @@
1
- export * from "next/headers"
2
-
3
- export { };
1
+ export * from "next/headers";
2
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.combined.d.ts","names":[],"sources":["../src/index.combined.ts"],"mappings":";;;;cAGqB,OAAA,SAAgB,SAAA,UAA6B,SAAA;AAAA,cAC7C,OAAA,SAAgB,SAAA,UAA6B,SAAA;AAAA,cAC7C,aAAA"}
1
+ {"version":3,"file":"index.combined.d.ts","names":[],"sources":["../src/index.combined.ts"],"mappings":";;;;cAGqB,OAAA,SAAgB,SAAA,UAA6B,SAAW;AAAA,cACxD,OAAA,SAAgB,SAAA,UAA6B,SAAW;AAAA,cACxD,aAAA"}
@@ -1,12 +1,11 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
2
  //#region src/index.default.ts
4
3
  const cookies = void 0;
5
4
  const headers = void 0;
6
5
  const isReactServer = false;
7
-
8
6
  //#endregion
9
7
  exports.cookies = cookies;
10
8
  exports.headers = headers;
11
9
  exports.isReactServer = isReactServer;
10
+
12
11
  //# sourceMappingURL=index.default.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.default.js","names":[],"sources":["../src/index.default.ts"],"sourcesContent":["export const cookies = undefined;\nexport const headers = undefined;\nexport const isReactServer = false;\n"],"mappings":";;;AAAA,MAAa,UAAU;AACvB,MAAa,UAAU;AACvB,MAAa,gBAAgB"}
1
+ {"version":3,"file":"index.default.js","names":[],"sources":["../src/index.default.ts"],"sourcesContent":["export const cookies = undefined;\nexport const headers = undefined;\nexport const isReactServer = false;\n"],"mappings":";;AAAA,MAAa,UAAU,KAAA;AACvB,MAAa,UAAU,KAAA;AACvB,MAAa,gBAAgB"}
@@ -1,4 +1,4 @@
1
- import { t as next_static_analysis_workaround_d_exports } from "./next-static-analysis-workaround.js";
1
+ import { t as next_static_analysis_workaround_d_exports } from "./next-static-analysis-workaround-pyaPRb_A.js";
2
2
 
3
3
  //#region src/index.react-server.d.ts
4
4
  declare const isReactServer = true;
@@ -1,13 +1,12 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let __next_static_analysis_workaround_js = require("./next-static-analysis-workaround.js");
3
-
4
3
  //#region src/index.react-server.ts
5
4
  const isReactServer = true;
6
5
  const cookies = __next_static_analysis_workaround_js.cookies;
7
6
  const headers = __next_static_analysis_workaround_js.headers;
8
-
9
7
  //#endregion
10
8
  exports.cookies = cookies;
11
9
  exports.headers = headers;
12
10
  exports.isReactServer = isReactServer;
11
+
13
12
  //# sourceMappingURL=index.react-server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.react-server.js","names":["nextCookies","nextHeaders"],"sources":["../src/index.react-server.ts"],"sourcesContent":["export const isReactServer = true;\n\n\n// In Next.js 15, the `next/headers` module returns async functions.\n// Since we support both Next.js 14 and 15, we return a union of the two.\n// TODO: Remove this once we drop support for Next.js 14, and replace it with `export { cookies, headers } from 'next/headers';`\n// https://nextjs.org/blog/next-15#async-request-apis-breaking-change\nimport { cookies as nextCookies, headers as nextHeaders } from './next-static-analysis-workaround';\nexport const cookies = nextCookies as typeof nextCookies | ((...args: Parameters<typeof nextCookies>) => Promise<ReturnType<typeof nextCookies>>);\nexport const headers = nextHeaders as typeof nextHeaders | ((...args: Parameters<typeof nextHeaders>) => Promise<ReturnType<typeof nextHeaders>>);\n"],"mappings":";;;;AAAA,MAAa,gBAAgB;AAQ7B,MAAa,UAAUA;AACvB,MAAa,UAAUC"}
1
+ {"version":3,"file":"index.react-server.js","names":["nextCookies","nextHeaders"],"sources":["../src/index.react-server.ts"],"sourcesContent":["export const isReactServer = true;\n\n\n// In Next.js 15, the `next/headers` module returns async functions.\n// Since we support both Next.js 14 and 15, we return a union of the two.\n// TODO: Remove this once we drop support for Next.js 14, and replace it with `export { cookies, headers } from 'next/headers';`\n// https://nextjs.org/blog/next-15#async-request-apis-breaking-change\nimport { cookies as nextCookies, headers as nextHeaders } from './next-static-analysis-workaround';\nexport const cookies = nextCookies as typeof nextCookies | ((...args: Parameters<typeof nextCookies>) => Promise<ReturnType<typeof nextCookies>>);\nexport const headers = nextHeaders as typeof nextHeaders | ((...args: Parameters<typeof nextHeaders>) => Promise<ReturnType<typeof nextHeaders>>);\n"],"mappings":";;;AAAA,MAAa,gBAAgB;AAQ7B,MAAa,UAAUA,qCAAAA;AACvB,MAAa,UAAUC,qCAAAA"}
@@ -0,0 +1,4 @@
1
+ import * as import_next_headers_js from "next/headers.js";
2
+ //#endregion
3
+ export { import_next_headers_js as t };
4
+ //# sourceMappingURL=next-static-analysis-workaround-pyaPRb_A.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next-static-analysis-workaround-pyaPRb_A.d.ts","names":[],"sources":["../src/next-static-analysis-workaround.ts"],"mappings":""}
@@ -1,8 +1 @@
1
- export * from "next/headers";
2
-
3
- //#region src/next-static-analysis-workaround.d.ts
4
-
5
- import * as import_next_headers from "next/headers";
6
- //#endregion
7
- export { import_next_headers as t };
8
- //# sourceMappingURL=next-static-analysis-workaround.d.ts.map
1
+ export * from "next/headers.js";
@@ -1,9 +1,9 @@
1
-
2
-
3
1
  var next_headers = require("next/headers");
4
- Object.keys(next_headers).forEach(function (k) {
5
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: function () { return next_headers[k]; }
8
- });
2
+ Object.keys(next_headers).forEach(function(k) {
3
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
4
+ enumerable: true,
5
+ get: function() {
6
+ return next_headers[k];
7
+ }
8
+ });
9
9
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexclave/sc",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "repository": "https://github.com/hexclave/hexclave",
5
5
  "exports": {
6
6
  "./force-react-server": {
@@ -65,7 +65,6 @@
65
65
  "build": "rimraf dist && tsdown",
66
66
  "typecheck": "tsc --noEmit",
67
67
  "clean": "rimraf dist && rimraf node_modules",
68
- "dev": "tsdown --watch",
69
68
  "lint": "eslint --ext .tsx,.ts ."
70
69
  }
71
70
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"next-static-analysis-workaround.d.ts","names":[],"sources":["../src/next-static-analysis-workaround.ts"],"mappings":""}