UNPKG

@cloudinary/url-gen

Version:

You are invited to influence our new SDK [Click here to view github discussion](https://github.com/cloudinary/js-url-gen/discussions/602) =========================

23 lines (19 loc) 517 B
'use strict'; var unsupportedError = require('./unsupportedError-74070138.cjs'); /** * @summary SDK * @memberOf SDK * @description Defines an action that's a string literal, no validations or manipulations are performed */ class RawAction { constructor(raw) { this.raw = raw; } toString() { return this.raw; } toJson() { return { error: unsupportedError.createUnsupportedError(`unsupported action ${this.constructor.name}`) }; } } exports.RawAction = RawAction;