@valbuild/next 0.60.21 → 0.60.23
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/valbuild-next.cjs.dev.js +2 -8
- package/dist/valbuild-next.cjs.prod.js +2 -8
- package/dist/valbuild-next.esm.js +2 -8
- package/dist/version-82faa1d0.cjs.dev.js +12 -0
- package/dist/version-98ec5c7a.esm.js +10 -0
- package/dist/version-a9a6a619.cjs.prod.js +12 -0
- package/package.json +5 -5
- package/server/dist/valbuild-next-server.cjs.dev.js +17 -1
- package/server/dist/valbuild-next-server.cjs.prod.js +17 -1
- package/server/dist/valbuild-next-server.esm.js +17 -1
|
@@ -10,6 +10,7 @@ var ValNextProvider = require('./ValNextProvider-ef4fdca6.cjs.dev.js');
|
|
|
10
10
|
var NextImage = require('next/image');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var ValApp = require('./ValApp-aff60572.cjs.dev.js');
|
|
13
|
+
var version = require('./version-82faa1d0.cjs.dev.js');
|
|
13
14
|
|
|
14
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
15
16
|
|
|
@@ -169,14 +170,7 @@ stega.autoTagJSX();
|
|
|
169
170
|
|
|
170
171
|
var Internal = objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal), {}, {
|
|
171
172
|
VERSION: objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal.VERSION), {}, {
|
|
172
|
-
next:
|
|
173
|
-
try {
|
|
174
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
175
|
-
return require("../package.json").version;
|
|
176
|
-
} catch (_unused) {
|
|
177
|
-
return null;
|
|
178
|
-
}
|
|
179
|
-
}()
|
|
173
|
+
next: version.VERSION
|
|
180
174
|
})
|
|
181
175
|
});
|
|
182
176
|
|
|
@@ -10,6 +10,7 @@ var ValNextProvider = require('./ValNextProvider-676d6cb8.cjs.prod.js');
|
|
|
10
10
|
var NextImage = require('next/image');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var ValApp = require('./ValApp-0ec0c7f3.cjs.prod.js');
|
|
13
|
+
var version = require('./version-a9a6a619.cjs.prod.js');
|
|
13
14
|
|
|
14
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
15
16
|
|
|
@@ -169,14 +170,7 @@ stega.autoTagJSX();
|
|
|
169
170
|
|
|
170
171
|
var Internal = objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal), {}, {
|
|
171
172
|
VERSION: objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal.VERSION), {}, {
|
|
172
|
-
next:
|
|
173
|
-
try {
|
|
174
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
175
|
-
return require("../package.json").version;
|
|
176
|
-
} catch (_unused) {
|
|
177
|
-
return null;
|
|
178
|
-
}
|
|
179
|
-
}()
|
|
173
|
+
next: version.VERSION
|
|
180
174
|
})
|
|
181
175
|
});
|
|
182
176
|
|
|
@@ -9,6 +9,7 @@ import { ValNextProvider } from './ValNextProvider-23099a43.esm.js';
|
|
|
9
9
|
import NextImage from 'next/image';
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
export { ValApp } from './ValApp-61103149.esm.js';
|
|
12
|
+
import { V as VERSION } from './version-98ec5c7a.esm.js';
|
|
12
13
|
|
|
13
14
|
function _typeof(o) {
|
|
14
15
|
"@babel/helpers - typeof";
|
|
@@ -145,14 +146,7 @@ autoTagJSX();
|
|
|
145
146
|
|
|
146
147
|
var Internal = _objectSpread2(_objectSpread2({}, Internal$1), {}, {
|
|
147
148
|
VERSION: _objectSpread2(_objectSpread2({}, Internal$1.VERSION), {}, {
|
|
148
|
-
next:
|
|
149
|
-
try {
|
|
150
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
151
|
-
return require("../package.json").version;
|
|
152
|
-
} catch (_unused) {
|
|
153
|
-
return null;
|
|
154
|
-
}
|
|
155
|
-
}()
|
|
149
|
+
next: VERSION
|
|
156
150
|
})
|
|
157
151
|
});
|
|
158
152
|
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"next",
|
|
9
9
|
"react"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.60.
|
|
11
|
+
"version": "0.60.23",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"typecheck": "tsc --noEmit",
|
|
14
14
|
"test": "jest"
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"exports": true
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@valbuild/core": "~0.60.
|
|
49
|
-
"@valbuild/react": "~0.60.
|
|
50
|
-
"@valbuild/server": "~0.60.
|
|
51
|
-
"@valbuild/ui": "~0.60.
|
|
48
|
+
"@valbuild/core": "~0.60.23",
|
|
49
|
+
"@valbuild/react": "~0.60.23",
|
|
50
|
+
"@valbuild/server": "~0.60.23",
|
|
51
|
+
"@valbuild/ui": "~0.60.23",
|
|
52
52
|
"client-only": "^0.0.1",
|
|
53
53
|
"server-only": "^0.0.1"
|
|
54
54
|
},
|
|
@@ -4,8 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('server-only');
|
|
6
6
|
var slicedToArray = require('../../dist/slicedToArray-c03b6356.cjs.dev.js');
|
|
7
|
+
var objectSpread2 = require('../../dist/objectSpread2-bb9509e8.cjs.dev.js');
|
|
8
|
+
var core = require('@valbuild/core');
|
|
7
9
|
var server = require('@valbuild/server');
|
|
8
10
|
var server$1 = require('next/server');
|
|
11
|
+
var version = require('../../dist/version-82faa1d0.cjs.dev.js');
|
|
9
12
|
require('../../dist/unsupportedIterableToArray-9e97e24a.cjs.dev.js');
|
|
10
13
|
|
|
11
14
|
function _regeneratorRuntime() {
|
|
@@ -343,7 +346,20 @@ function _asyncToGenerator(fn) {
|
|
|
343
346
|
|
|
344
347
|
var initValNextAppRouter = function initValNextAppRouter(config, nextConfig) {
|
|
345
348
|
var route = "/api/val"; // TODO: get from config
|
|
346
|
-
|
|
349
|
+
var coreVersion = core.Internal.VERSION.core;
|
|
350
|
+
if (!coreVersion) {
|
|
351
|
+
throw new Error("Could not get @valbuild/core package version");
|
|
352
|
+
}
|
|
353
|
+
var nextVersion = version.VERSION;
|
|
354
|
+
if (!nextVersion) {
|
|
355
|
+
throw new Error("Could not get @valbuild/next package version");
|
|
356
|
+
}
|
|
357
|
+
return server.createValApiRouter(route, server.createValServer(route, objectSpread2._objectSpread2({
|
|
358
|
+
versions: {
|
|
359
|
+
next: nextVersion,
|
|
360
|
+
core: coreVersion
|
|
361
|
+
}
|
|
362
|
+
}, config), {
|
|
347
363
|
isEnabled: function isEnabled() {
|
|
348
364
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
349
365
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -4,8 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('server-only');
|
|
6
6
|
var slicedToArray = require('../../dist/slicedToArray-1d91551a.cjs.prod.js');
|
|
7
|
+
var objectSpread2 = require('../../dist/objectSpread2-24e737a6.cjs.prod.js');
|
|
8
|
+
var core = require('@valbuild/core');
|
|
7
9
|
var server = require('@valbuild/server');
|
|
8
10
|
var server$1 = require('next/server');
|
|
11
|
+
var version = require('../../dist/version-a9a6a619.cjs.prod.js');
|
|
9
12
|
require('../../dist/unsupportedIterableToArray-afbea1dd.cjs.prod.js');
|
|
10
13
|
|
|
11
14
|
function _regeneratorRuntime() {
|
|
@@ -343,7 +346,20 @@ function _asyncToGenerator(fn) {
|
|
|
343
346
|
|
|
344
347
|
var initValNextAppRouter = function initValNextAppRouter(config, nextConfig) {
|
|
345
348
|
var route = "/api/val"; // TODO: get from config
|
|
346
|
-
|
|
349
|
+
var coreVersion = core.Internal.VERSION.core;
|
|
350
|
+
if (!coreVersion) {
|
|
351
|
+
throw new Error("Could not get @valbuild/core package version");
|
|
352
|
+
}
|
|
353
|
+
var nextVersion = version.VERSION;
|
|
354
|
+
if (!nextVersion) {
|
|
355
|
+
throw new Error("Could not get @valbuild/next package version");
|
|
356
|
+
}
|
|
357
|
+
return server.createValApiRouter(route, server.createValServer(route, objectSpread2._objectSpread2({
|
|
358
|
+
versions: {
|
|
359
|
+
next: nextVersion,
|
|
360
|
+
core: coreVersion
|
|
361
|
+
}
|
|
362
|
+
}, config), {
|
|
347
363
|
isEnabled: function isEnabled() {
|
|
348
364
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
349
365
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import 'server-only';
|
|
2
2
|
import { _ as _slicedToArray } from '../../dist/slicedToArray-1ff80c5e.esm.js';
|
|
3
|
+
import { _ as _objectSpread2 } from '../../dist/objectSpread2-439bdcdd.esm.js';
|
|
4
|
+
import { Internal } from '@valbuild/core';
|
|
3
5
|
import { createValApiRouter, createValServer } from '@valbuild/server';
|
|
4
6
|
import { NextResponse } from 'next/server';
|
|
7
|
+
import { V as VERSION } from '../../dist/version-98ec5c7a.esm.js';
|
|
5
8
|
import '../../dist/unsupportedIterableToArray-51bb61c2.esm.js';
|
|
6
9
|
|
|
7
10
|
function _regeneratorRuntime() {
|
|
@@ -339,7 +342,20 @@ function _asyncToGenerator(fn) {
|
|
|
339
342
|
|
|
340
343
|
var initValNextAppRouter = function initValNextAppRouter(config, nextConfig) {
|
|
341
344
|
var route = "/api/val"; // TODO: get from config
|
|
342
|
-
|
|
345
|
+
var coreVersion = Internal.VERSION.core;
|
|
346
|
+
if (!coreVersion) {
|
|
347
|
+
throw new Error("Could not get @valbuild/core package version");
|
|
348
|
+
}
|
|
349
|
+
var nextVersion = VERSION;
|
|
350
|
+
if (!nextVersion) {
|
|
351
|
+
throw new Error("Could not get @valbuild/next package version");
|
|
352
|
+
}
|
|
353
|
+
return createValApiRouter(route, createValServer(route, _objectSpread2({
|
|
354
|
+
versions: {
|
|
355
|
+
next: nextVersion,
|
|
356
|
+
core: coreVersion
|
|
357
|
+
}
|
|
358
|
+
}, config), {
|
|
343
359
|
isEnabled: function isEnabled() {
|
|
344
360
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
345
361
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|