@syferit/next 1.0.0 → 1.0.2
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/index.js +41 -41
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// [Protected by Soltrix Studios: Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
|
|
2
2
|
import { SyferitWebpackPlugin } from '@syferit/webpack-plugin';
|
|
3
3
|
export function withSyferit(nextConfig = {}, syferitOptions = {}) {
|
|
4
|
-
function
|
|
5
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
4
|
+
function sanitizeSeed_11b0(_tok0, _tok1, _tok2, _tok3) {
|
|
5
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:60c83530-3e43814d]",
|
|
6
6
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
7
7
|
let _h = 2166136261;
|
|
8
8
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -20,22 +20,22 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
|
|
|
20
20
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
21
21
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
22
22
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
23
|
-
if ((_h >>> 4 & 15) !==
|
|
24
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
23
|
+
if ((_h >>> 4 & 15) !== 11) {
|
|
24
|
+
throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
|
|
25
25
|
}
|
|
26
26
|
return _h;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
const _row =
|
|
32
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
28
|
+
const __syferitOptionsState_11b0 = sanitizeSeed_11b0(1877694405, 2143765491, 1022390391, 996639657);
|
|
29
|
+
const _ProprietaryEnclaveDelta_11b0 = [[207, 118, 215, 54, 38, 251, 56, 143, 136, 66], [148, 91, 178, 19, 13, 222, 5, 98, 99, 63], [122, 47, 99, 239], [73, 28, 81, 158, 161, 107, 212, 32, 50], [53, 237, 34, 133, 147, 69, 143, 20], [29, 211, 5, 110, 126, 33, 119, 246, 211, 128]];
|
|
30
|
+
function _verifyProprietaryEnclaveContext_11b0(_slot) {
|
|
31
|
+
const _row = _ProprietaryEnclaveDelta_11b0[_slot];
|
|
32
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__syferitOptionsState_11b0 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
33
33
|
}
|
|
34
|
-
return (
|
|
34
|
+
return (__syferitOptionsState_11b0 & 255) === 191 ? {
|
|
35
35
|
...nextConfig,
|
|
36
36
|
webpack(config, context) {
|
|
37
|
-
function
|
|
38
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
37
|
+
function verifyCertificateCheck_6d36(_tok0, _tok1, _tok2, _tok3) {
|
|
38
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:417dbc77-c6b7658f]",
|
|
39
39
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
40
40
|
let _h = 2166136261;
|
|
41
41
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -53,40 +53,40 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
|
|
|
53
53
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
54
54
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
55
55
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
56
|
-
if ((_h >>> 4 & 15) !==
|
|
57
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
56
|
+
if ((_h >>> 4 & 15) !== 3) {
|
|
57
|
+
throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
|
|
58
58
|
}
|
|
59
59
|
return _h;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const __shouldRunState_6d36 = verifyCertificateCheck_6d36(1337524479, 1407970505, 1761208887, 445749287);
|
|
62
62
|
const {
|
|
63
|
-
isServer:
|
|
64
|
-
dev:
|
|
63
|
+
isServer: _enclaveReg_a89,
|
|
64
|
+
dev: _nonceScalar_aea
|
|
65
65
|
} = context;
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
66
|
+
const _keystoreCheck_3f0 = syferitOptions.mode === _verifyProprietaryEnclaveContext_11b0(1135924754 ^ Math.imul(__syferitOptionsState_11b0 & 65535 ^ 2661, 20749)) || !_nonceScalar_aea && (syferitOptions.protectServer || !_enclaveReg_a89);
|
|
67
|
+
if (_keystoreCheck_3f0) {
|
|
68
68
|
config.plugins = config.plugins || [];
|
|
69
69
|
config.plugins.push(new SyferitWebpackPlugin({
|
|
70
|
-
mode:
|
|
71
|
-
domainProfile: syferitOptions.domainProfile ??
|
|
70
|
+
mode: _verifyProprietaryEnclaveContext_11b0(1619508722 ^ Math.imul(__syferitOptionsState_11b0 & 65535 ^ 11520, 26061)),
|
|
71
|
+
domainProfile: syferitOptions.domainProfile ?? _verifyProprietaryEnclaveContext_11b0(709230289 ^ Math.imul(__syferitOptionsState_11b0 & 65535 ^ 25050, 14551)),
|
|
72
72
|
seed: syferitOptions.seed ?? null,
|
|
73
|
-
entanglementIntensity: syferitOptions.entanglementIntensity ??
|
|
73
|
+
entanglementIntensity: syferitOptions.entanglementIntensity ?? 432522804 ^ Math.imul(__syferitOptionsState_11b0 & 65535 ^ 6142, 8437),
|
|
74
74
|
architecturalGaslighting: syferitOptions.architecturalGaslighting ?? true,
|
|
75
75
|
dynamicDispatch: syferitOptions.dynamicDispatch ?? true,
|
|
76
76
|
exclude: syferitOptions.exclude,
|
|
77
77
|
test: syferitOptions.test
|
|
78
78
|
}));
|
|
79
79
|
}
|
|
80
|
-
if (typeof nextConfig.webpack ===
|
|
80
|
+
if (typeof nextConfig.webpack === _verifyProprietaryEnclaveContext_11b0(1112501914 ^ Math.imul(__syferitOptionsState_11b0 & 65535 ^ 2918, 20417)) && (Math.imul(Math.imul((1877694405 | 0) ^ 56 | 1, (1877694405 | 0) ^ 56 | 1), Math.imul((1877694405 | 0) ^ 56 | 1, (1877694405 | 0) ^ 56 | 1)) & 15 ^ (__syferitOptionsState_11b0 >>> 4 & 255 ^ 155)) === 107) {
|
|
81
81
|
return nextConfig.webpack(config, context);
|
|
82
|
-
} else if (typeof nextConfig.webpack ===
|
|
82
|
+
} else if (typeof nextConfig.webpack === _verifyProprietaryEnclaveContext_11b0(1013139451 ^ Math.imul(__syferitOptionsState_11b0 & 65535 ^ 5144, 19433)) && (Math.imul(Math.imul((1877694405 | 0) ^ 73 | 1, (1877694405 | 0) ^ 73 | 1), Math.imul((1877694405 | 0) ^ 73 | 1, (1877694405 | 0) ^ 73 | 1)) & 15 ^ (__syferitOptionsState_11b0 >>> 13 & 255 ^ 147)) === 228) {
|
|
83
83
|
return nextConfig.webpack(config, context);
|
|
84
|
-
} else if (typeof nextConfig.webpack ===
|
|
84
|
+
} else if (typeof nextConfig.webpack === _verifyProprietaryEnclaveContext_11b0(987239459 ^ Math.imul(__syferitOptionsState_11b0 & 65535 ^ 27613, 21379)) && (Math.imul(Math.imul((1877694405 | 0) ^ 27 | 1, (1877694405 | 0) ^ 27 | 1), Math.imul((1877694405 | 0) ^ 27 | 1, (1877694405 | 0) ^ 27 | 1)) & 15 ^ (__syferitOptionsState_11b0 >>> 12 & 255 ^ 142)) === 104) {
|
|
85
85
|
return nextConfig.webpack(config, context);
|
|
86
86
|
}
|
|
87
|
-
return (
|
|
88
|
-
function
|
|
89
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
87
|
+
return (__shouldRunState_6d36 & 255) === 52 ? config : (() => {
|
|
88
|
+
function authenticateConfig_d089(_tok0, _tok1, _tok2, _tok3) {
|
|
89
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:5f9c5c5d-bc27292a]",
|
|
90
90
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
91
91
|
let _h = 2166136261;
|
|
92
92
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -104,21 +104,21 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
|
|
|
104
104
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
105
105
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
106
106
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
107
|
-
if ((_h >>> 4 & 15) !==
|
|
108
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
107
|
+
if ((_h >>> 4 & 15) !== 0) {
|
|
108
|
+
throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
|
|
109
109
|
}
|
|
110
110
|
return _h;
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
if ((
|
|
112
|
+
const __certificateFrame_d089 = authenticateConfig_d089(2092685509, 2028721651, 689816223, 290710593);
|
|
113
|
+
if ((__certificateFrame_d089 & 255) !== 13) {
|
|
114
114
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
115
115
|
}
|
|
116
116
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
117
117
|
})();
|
|
118
118
|
}
|
|
119
119
|
} : (() => {
|
|
120
|
-
function
|
|
121
|
-
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:
|
|
120
|
+
function isolateExclude_a06(_tok0, _tok1, _tok2, _tok3) {
|
|
121
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:ac0cca78-a0d5b9cc]",
|
|
122
122
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
123
123
|
let _h = 2166136261;
|
|
124
124
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -136,13 +136,13 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
|
|
|
136
136
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
137
137
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
138
138
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
139
|
-
if ((_h >>> 4 & 15) !==
|
|
140
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
139
|
+
if ((_h >>> 4 & 15) !== 3) {
|
|
140
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
141
141
|
}
|
|
142
142
|
return _h;
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
if ((
|
|
144
|
+
const __dynamicDispatchState_a06 = isolateExclude_a06(941321219, 1105780881, 452233515, 1493059669);
|
|
145
|
+
if ((__dynamicDispatchState_a06 & 255) !== 55) {
|
|
146
146
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
147
147
|
}
|
|
148
148
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
@@ -150,8 +150,8 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
|
|
|
150
150
|
}
|
|
151
151
|
export default withSyferit;
|
|
152
152
|
if (typeof window !== "undefined") {
|
|
153
|
-
window.
|
|
154
|
-
syncEpoch:
|
|
155
|
-
channelSig: "
|
|
153
|
+
window.__syferitIPC_2eb0 && window.__syferitIPC_2eb0.invoke && window.__syferitIPC_2eb0.invoke("analytics:telemetry-digest-frame", {
|
|
154
|
+
syncEpoch: 1168117232,
|
|
155
|
+
channelSig: "SIG_FRAME_2EB0"
|
|
156
156
|
});
|
|
157
157
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syferit/next",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Zero-friction Next.js adapter for Syferit adversarial code protection",
|
|
5
5
|
"author": "Soltrix Studios",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\""
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@syferit/core": "^1.0.
|
|
23
|
-
"@syferit/webpack-plugin": "^1.0.
|
|
22
|
+
"@syferit/core": "^1.0.2",
|
|
23
|
+
"@syferit/webpack-plugin": "^1.0.2"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"next": ">=13.0.0"
|