- 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>
26 lines
782 B
JavaScript
26 lines
782 B
JavaScript
'use strict';
|
|
|
|
var $TypeError = require('es-errors/type');
|
|
|
|
var callBound = require('call-bound');
|
|
|
|
var $charCodeAt = callBound('String.prototype.charCodeAt');
|
|
var $numberToString = callBound('Number.prototype.toString');
|
|
var $toLowerCase = callBound('String.prototype.toLowerCase');
|
|
|
|
var StringPad = require('./StringPad');
|
|
|
|
// https://262.ecma-international.org/11.0/#sec-unicodeescape
|
|
|
|
module.exports = function UnicodeEscape(C) {
|
|
if (typeof C !== 'string' || C.length !== 1) {
|
|
throw new $TypeError('Assertion failed: `C` must be a single code unit');
|
|
}
|
|
var n = $charCodeAt(C, 0);
|
|
if (n > 0xFFFF) {
|
|
throw new $TypeError('`Assertion failed: numeric value of `C` must be <= 0xFFFF');
|
|
}
|
|
|
|
return '\\u' + StringPad($toLowerCase($numberToString(n, 16)), 4, '0', 'start');
|
|
};
|