@gravity-ui/data-source 0.10.0-alpha.2 → 0.10.0-alpha.3

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,4 +1,4 @@
1
- const require_factory = require("./factory-D7zGeCrN.cjs");
1
+ const require_factory = require("./factory-CmOH3Kh6.cjs");
2
2
  //#region src/plugin/esbuild.ts
3
3
  var esbuild_default = (0, require("unplugin").createEsbuildPlugin)(require_factory.dataSourceLazyUnpluginFactory);
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as dataSourceLazyUnpluginFactory } from "./factory-Bjj8NXy2.mjs";
1
+ import { n as dataSourceLazyUnpluginFactory } from "./factory--H-amlua.mjs";
2
2
  import { createEsbuildPlugin } from "unplugin";
3
3
  //#region src/plugin/esbuild.ts
4
4
  var esbuild_default = createEsbuildPlugin(dataSourceLazyUnpluginFactory);
@@ -27,8 +27,9 @@ function makeVirtualId(type, sourceFile) {
27
27
  return `${VIRTUAL_PREFIX}:${type}:${sourceFile}`;
28
28
  }
29
29
  function parseVirtualId(id) {
30
- if (id.indexOf("\0dsl-plugin") !== 0) return null;
31
- const rest = id.slice(12);
30
+ const prefixIndex = id.indexOf(VIRTUAL_PREFIX);
31
+ if (prefixIndex === -1) return null;
32
+ const rest = id.slice(prefixIndex + 11 + 1);
32
33
  const colonIndex = rest.indexOf(":");
33
34
  if (colonIndex === -1) return null;
34
35
  const type = rest.slice(0, colonIndex);
@@ -52,8 +52,9 @@ function makeVirtualId(type, sourceFile) {
52
52
  return `${VIRTUAL_PREFIX}:${type}:${sourceFile}`;
53
53
  }
54
54
  function parseVirtualId(id) {
55
- if (id.indexOf("\0dsl-plugin") !== 0) return null;
56
- const rest = id.slice(12);
55
+ const prefixIndex = id.indexOf(VIRTUAL_PREFIX);
56
+ if (prefixIndex === -1) return null;
57
+ const rest = id.slice(prefixIndex + 11 + 1);
57
58
  const colonIndex = rest.indexOf(":");
58
59
  if (colonIndex === -1) return null;
59
60
  const type = rest.slice(0, colonIndex);
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_factory = require("./factory-D7zGeCrN.cjs");
5
+ const require_factory = require("./factory-CmOH3Kh6.cjs");
6
6
  //#region src/plugin/index.ts
7
7
  const DataSourceLazyPlugin = /* @__PURE__ */ (0, require("unplugin").createUnplugin)(require_factory.dataSourceLazyUnpluginFactory);
8
8
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as dataSourceLazyUnpluginFactory, t as DEFAULT_HOCS } from "./factory-Bjj8NXy2.mjs";
1
+ import { n as dataSourceLazyUnpluginFactory, t as DEFAULT_HOCS } from "./factory--H-amlua.mjs";
2
2
  import { createUnplugin } from "unplugin";
3
3
  //#region src/plugin/index.ts
4
4
  const DataSourceLazyPlugin = /* @__PURE__ */ createUnplugin(dataSourceLazyUnpluginFactory);
@@ -1,4 +1,4 @@
1
- const require_factory = require("./factory-D7zGeCrN.cjs");
1
+ const require_factory = require("./factory-CmOH3Kh6.cjs");
2
2
  //#region src/plugin/rollup.ts
3
3
  var rollup_default = (0, require("unplugin").createRollupPlugin)(require_factory.dataSourceLazyUnpluginFactory);
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as dataSourceLazyUnpluginFactory } from "./factory-Bjj8NXy2.mjs";
1
+ import { n as dataSourceLazyUnpluginFactory } from "./factory--H-amlua.mjs";
2
2
  import { createRollupPlugin } from "unplugin";
3
3
  //#region src/plugin/rollup.ts
4
4
  var rollup_default = createRollupPlugin(dataSourceLazyUnpluginFactory);
@@ -1,4 +1,4 @@
1
- const require_factory = require("./factory-D7zGeCrN.cjs");
1
+ const require_factory = require("./factory-CmOH3Kh6.cjs");
2
2
  //#region src/plugin/rspack.ts
3
3
  var rspack_default = (0, require("unplugin").createRspackPlugin)(require_factory.dataSourceLazyUnpluginFactory);
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as dataSourceLazyUnpluginFactory } from "./factory-Bjj8NXy2.mjs";
1
+ import { n as dataSourceLazyUnpluginFactory } from "./factory--H-amlua.mjs";
2
2
  import { createRspackPlugin } from "unplugin";
3
3
  //#region src/plugin/rspack.ts
4
4
  var rspack_default = createRspackPlugin(dataSourceLazyUnpluginFactory);
@@ -1,4 +1,4 @@
1
- const require_factory = require("./factory-D7zGeCrN.cjs");
1
+ const require_factory = require("./factory-CmOH3Kh6.cjs");
2
2
  //#region src/plugin/vite.ts
3
3
  var vite_default = (0, require("unplugin").createVitePlugin)(require_factory.dataSourceLazyUnpluginFactory);
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as dataSourceLazyUnpluginFactory } from "./factory-Bjj8NXy2.mjs";
1
+ import { n as dataSourceLazyUnpluginFactory } from "./factory--H-amlua.mjs";
2
2
  import { createVitePlugin } from "unplugin";
3
3
  //#region src/plugin/vite.ts
4
4
  var vite_default = createVitePlugin(dataSourceLazyUnpluginFactory);
@@ -1,4 +1,4 @@
1
- const require_factory = require("./factory-D7zGeCrN.cjs");
1
+ const require_factory = require("./factory-CmOH3Kh6.cjs");
2
2
  //#region src/plugin/webpack.ts
3
3
  var webpack_default = (0, require("unplugin").createWebpackPlugin)(require_factory.dataSourceLazyUnpluginFactory);
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as dataSourceLazyUnpluginFactory } from "./factory-Bjj8NXy2.mjs";
1
+ import { n as dataSourceLazyUnpluginFactory } from "./factory--H-amlua.mjs";
2
2
  import { createWebpackPlugin } from "unplugin";
3
3
  //#region src/plugin/webpack.ts
4
4
  var webpack_default = createWebpackPlugin(dataSourceLazyUnpluginFactory);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/data-source",
3
- "version": "0.10.0-alpha.2",
3
+ "version": "0.10.0-alpha.3",
4
4
  "description": "A wrapper around data fetching",
5
5
  "keywords": [
6
6
  "data-fetching",