@rivetkit/sql-loader 2.0.19 → 2.0.21

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/dist/hook.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/nathan/rivetkit/packages/sql-loader/dist/hook.cjs","../src/hook.ts"],"names":[],"mappings":"AAAA;ACAA,wBAA6B;AAE7B,0BAA8B;AAEvB,IAAM,KAAA,EAAiB,MAAA,CAAO,GAAA,EAAK,OAAA,EAAS,QAAA,EAAA,GAAa;AAC/D,EAAA,GAAA,CAAI,GAAA,CAAI,QAAA,CAAS,MAAM,CAAA,EAAG;AACzB,IAAA,OAAO;AAAA,MACN,YAAA,EAAc,IAAA;AAAA,MACd,MAAA,EAAQ,QAAA;AAAA,MACR,MAAA,EAAQ,CAAA,eAAA,EAAkB,IAAA,CAAK,SAAA,CAAU,8BAAA,gCAAa,GAAiB,CAAA,EAAG,OAAO,CAAC,CAAC,CAAA,CAAA;AAAA,IACpF,CAAA;AAAA,EACD;AACA,EAAA,OAAO,QAAA,CAAS,GAAA,EAAK,OAAO,CAAA;AAC7B,CAAA;ADAA;AACE;AACF,oBAAC","file":"/Users/nathan/rivetkit/packages/sql-loader/dist/hook.cjs","sourcesContent":[null,"import { readFileSync } from \"node:fs\";\nimport type { LoadHook } from \"node:module\";\nimport { fileURLToPath } from \"node:url\";\n\nexport const load: LoadHook = async (url, context, nextLoad) => {\n\tif (url.endsWith(\".sql\")) {\n\t\treturn {\n\t\t\tshortCircuit: true,\n\t\t\tformat: \"module\",\n\t\t\tsource: `export default ${JSON.stringify(readFileSync(fileURLToPath(url), \"utf-8\"))};`,\n\t\t};\n\t}\n\treturn nextLoad(url, context);\n};\n"]}
1
+ {"version":3,"sources":["/Users/nathan/rivet/rivetkit-typescript/packages/sql-loader/dist/hook.cjs","../src/hook.ts"],"names":[],"mappings":"AAAA;ACAA,wBAA6B;AAE7B,0BAA8B;AAEvB,IAAM,KAAA,EAAiB,MAAA,CAAO,GAAA,EAAK,OAAA,EAAS,QAAA,EAAA,GAAa;AAC/D,EAAA,GAAA,CAAI,GAAA,CAAI,QAAA,CAAS,MAAM,CAAA,EAAG;AACzB,IAAA,OAAO;AAAA,MACN,YAAA,EAAc,IAAA;AAAA,MACd,MAAA,EAAQ,QAAA;AAAA,MACR,MAAA,EAAQ,CAAA,eAAA,EAAkB,IAAA,CAAK,SAAA,CAAU,8BAAA,gCAAa,GAAiB,CAAA,EAAG,OAAO,CAAC,CAAC,CAAA,CAAA;AAAA,IACpF,CAAA;AAAA,EACD;AACA,EAAA,OAAO,QAAA,CAAS,GAAA,EAAK,OAAO,CAAA;AAC7B,CAAA;ADAA;AACE;AACF,oBAAC","file":"/Users/nathan/rivet/rivetkit-typescript/packages/sql-loader/dist/hook.cjs","sourcesContent":[null,"import { readFileSync } from \"node:fs\";\nimport type { LoadHook } from \"node:module\";\nimport { fileURLToPath } from \"node:url\";\n\nexport const load: LoadHook = async (url, context, nextLoad) => {\n\tif (url.endsWith(\".sql\")) {\n\t\treturn {\n\t\t\tshortCircuit: true,\n\t\t\tformat: \"module\",\n\t\t\tsource: `export default ${JSON.stringify(readFileSync(fileURLToPath(url), \"utf-8\"))};`,\n\t\t};\n\t}\n\treturn nextLoad(url, context);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/nathan/rivetkit/packages/sql-loader/dist/register.cjs","../src/register.ts"],"names":[],"mappings":"AAAA;ACAA,gCAAyB;AACzB,0BAA8B;AAE9B,IAAM,MAAA,EAAQ,OAAO,OAAA,IAAW,YAAA,GAAe,OAAO,QAAA,IAAY,WAAA;AAElE,8BAAA;AAAA,EACC,MAAA,EAAQ,aAAA,EAAe,WAAA;AAAA,EACvB,gCAAA,MAAc,CAAA,IAAA,CAAY,QAAQ;AACnC,CAAA","file":"/Users/nathan/rivetkit/packages/sql-loader/dist/register.cjs","sourcesContent":[null,"import { register } from \"node:module\";\nimport { pathToFileURL } from \"node:url\";\n\nconst isCJS = typeof module !== \"undefined\" && typeof exports !== \"undefined\";\n\nregister(\n\tisCJS ? \"./hook.cjs\" : \"./hook.js\",\n\tpathToFileURL(import.meta.filename),\n);\n"]}
1
+ {"version":3,"sources":["/Users/nathan/rivet/rivetkit-typescript/packages/sql-loader/dist/register.cjs","../src/register.ts"],"names":[],"mappings":"AAAA;ACAA,gCAAyB;AACzB,0BAA8B;AAE9B,IAAM,MAAA,EAAQ,OAAO,OAAA,IAAW,YAAA,GAAe,OAAO,QAAA,IAAY,WAAA;AAElE,8BAAA;AAAA,EACC,MAAA,EAAQ,aAAA,EAAe,WAAA;AAAA,EACvB,gCAAA,MAAc,CAAA,IAAA,CAAY,QAAQ;AACnC,CAAA","file":"/Users/nathan/rivet/rivetkit-typescript/packages/sql-loader/dist/register.cjs","sourcesContent":[null,"import { register } from \"node:module\";\nimport { pathToFileURL } from \"node:url\";\n\nconst isCJS = typeof module !== \"undefined\" && typeof exports !== \"undefined\";\n\nregister(\n\tisCJS ? \"./hook.cjs\" : \"./hook.js\",\n\tpathToFileURL(import.meta.filename),\n);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/sql-loader",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "description": "SQL file loader and migration utilities for RivetKit",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": [