Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
1.4 KiB
Text
32 lines
1.4 KiB
Text
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
/**
|
|
* Tagged template function which returns parameterized representation of the message
|
|
* For example: parameterize`This is a log statement with ${x} and ${y} params`, would return:
|
|
* "__sentry_template_string__": 'This is a log statement with %s and %s params',
|
|
* "__sentry_template_values__": ['first', 'second']
|
|
*
|
|
* @param strings An array of string values splitted between expressions
|
|
* @param values Expressions extracted from template string
|
|
*
|
|
* @returns A `ParameterizedString` object that can be passed into `captureMessage` or Sentry.logger.X methods.
|
|
*/
|
|
function parameterize(strings, ...values) {
|
|
const formatted = new String(String.raw(strings, ...values)) ;
|
|
formatted.__sentry_template_string__ = strings.join('\x00').replace(/%/g, '%%').replace(/\0/g, '%s');
|
|
formatted.__sentry_template_values__ = values;
|
|
return formatted;
|
|
}
|
|
|
|
/**
|
|
* Tagged template function which returns parameterized representation of the message.
|
|
*
|
|
* @param strings An array of string values splitted between expressions
|
|
* @param values Expressions extracted from template string
|
|
* @returns A `ParameterizedString` object that can be passed into `captureMessage` or Sentry.logger.X methods.
|
|
*/
|
|
const fmt = parameterize;
|
|
|
|
exports.fmt = fmt;
|
|
exports.parameterize = parameterize;
|
|
//# sourceMappingURL=parameterize.js.map
|