HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode/one-time-popup/node_modules/sass-embedded/dist/lib/src/deprotofy-span.js
"use strict";
// Copyright 2021 Google LLC. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.deprotofySourceSpan = deprotofySourceSpan;
const url_1 = require("url");
const utils_1 = require("./utils");
// Creates a SourceSpan from the given protocol `buffer`. Throws if the buffer
// has invalid fields.
function deprotofySourceSpan(buffer) {
    const text = buffer.text;
    if (buffer.start === undefined) {
        throw (0, utils_1.compilerError)('Expected SourceSpan to have start.');
    }
    let end;
    if (buffer.end === undefined) {
        if (text !== '') {
            throw (0, utils_1.compilerError)('Expected SourceSpan text to be empty.');
        }
        else {
            end = buffer.start;
        }
    }
    else {
        end = buffer.end;
        if (end.offset < buffer.start.offset) {
            throw (0, utils_1.compilerError)('Expected SourceSpan end to be after start.');
        }
    }
    const url = buffer.url === '' ? undefined : new url_1.URL(buffer.url);
    const context = buffer.context === '' ? undefined : buffer.context;
    return {
        text,
        start: buffer.start,
        end,
        url,
        context,
    };
}
//# sourceMappingURL=deprotofy-span.js.map