- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
715 B
JavaScript
30 lines
715 B
JavaScript
'use strict';
|
|
|
|
var define = require('define-properties');
|
|
var gOPD = require('gopd');
|
|
var getPolyfill = require('./polyfill');
|
|
|
|
module.exports = function shimGlobal() {
|
|
var polyfill = getPolyfill();
|
|
if (define.supportsDescriptors) {
|
|
var descriptor = gOPD(polyfill, 'globalThis');
|
|
if (
|
|
!descriptor
|
|
|| (
|
|
descriptor.configurable
|
|
&& (descriptor.enumerable || !descriptor.writable || globalThis !== polyfill)
|
|
)
|
|
) {
|
|
Object.defineProperty(polyfill, 'globalThis', {
|
|
configurable: true,
|
|
enumerable: false,
|
|
value: polyfill,
|
|
writable: true
|
|
});
|
|
}
|
|
} else if (typeof globalThis !== 'object' || globalThis !== polyfill) {
|
|
polyfill.globalThis = polyfill;
|
|
}
|
|
return polyfill;
|
|
};
|