Add PHP-ALIAS-01 rule: prohibit field aliasing in serialization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
504 B
JavaScript
19 lines
504 B
JavaScript
"use strict";
|
|
|
|
/* global __resourceQuery */
|
|
|
|
var isNodeLikeEnv =
|
|
typeof global !== "undefined" && typeof global.process !== "undefined";
|
|
|
|
var handler = isNodeLikeEnv
|
|
? require("./lazy-compilation-node")
|
|
: require("./lazy-compilation-web");
|
|
|
|
handler.setUrl(decodeURIComponent(__resourceQuery.slice(1)));
|
|
|
|
/**
|
|
* @param {{ data: string, onError: (err: Error) => void, active: boolean, module: module }} options options
|
|
* @returns {() => void} function to destroy response
|
|
*/
|
|
module.exports = handler;
|