1 line
2.9 KiB
JSON
1 line
2.9 KiB
JSON
|
{"ast":null,"code":"'use strict';\n\nconst descriptor = {\n value: 'SqliteError',\n writable: true,\n enumerable: false,\n configurable: true\n};\nfunction SqliteError(message, code, rawCode) {\n if (new.target !== SqliteError) {\n return new SqliteError(message, code);\n }\n if (typeof code !== 'string') {\n throw new TypeError('Expected second argument to be a string');\n }\n Error.call(this, message);\n descriptor.value = '' + message;\n Object.defineProperty(this, 'message', descriptor);\n Error.captureStackTrace(this, SqliteError);\n this.code = code;\n this.rawCode = rawCode;\n}\nObject.setPrototypeOf(SqliteError, Error);\nObject.setPrototypeOf(SqliteError.prototype, Error.prototype);\nObject.defineProperty(SqliteError.prototype, 'name', descriptor);\nmodule.exports = SqliteError;","map":{"version":3,"names":["descriptor","value","writable","enumerable","configurable","SqliteError","message","code","rawCode","new","target","TypeError","Error","call","Object","defineProperty","captureStackTrace","setPrototypeOf","prototype","module","exports"],"sources":["/Users/shoofle/Projects/the-forest/node_modules/libsql/sqlite-error.js"],"sourcesContent":["'use strict';\nconst descriptor = { value: 'SqliteError', writable: true, enumerable: false, configurable: true };\n\nfunction SqliteError(message, code, rawCode) {\n if (new.target !== SqliteError) {\n return new SqliteError(message, code);\n }\n if (typeof code !== 'string') {\n throw new TypeError('Expected second argument to be a string');\n }\n Error.call(this, message);\n descriptor.value = '' + message;\n Object.defineProperty(this, 'message', descriptor);\n Error.captureStackTrace(this, SqliteError);\n this.code = code;\n this.rawCode = rawCode\n}\nObject.setPrototypeOf(SqliteError, Error);\nObject.setPrototypeOf(SqliteError.prototype, Error.prototype);\nObject.defineProperty(SqliteError.prototype, 'name', descriptor);\nmodule.exports = SqliteError;\n"],"mappings":"AAAA,YAAY;;AACZ,MAAMA,UAAU,GAAG;EAAEC,KAAK,EAAE,aAAa;EAAEC,QAAQ,EAAE,IAAI;EAAEC,UAAU,EAAE,KAAK;EAAEC,YAAY,EAAE;AAAK,CAAC;AAElG,SAASC,WAAWA,CAACC,OAAO,EAAEC,IAAI,EAAEC,OAAO,EAAE;EACrC,IAAIC,GAAG,CAACC,MAAM,KAAKL,WAAW,EAAE;IACxB,OAAO,IAAIA,WAAW,CAACC,OAAO,EAAEC,IAAI,CAAC;EAC7C;EACA,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IACtB,MAAM,IAAII,SAAS,CAAC,yCAAyC,CAAC;EACtE;EACAC,KAAK,CAACC,IAAI,CAAC,IAAI,EAAEP,OAAO,CAAC;EACzBN,UAAU,CAACC,KAAK,GAAG,EAAE,GAAGK,OAAO;EAC/BQ,MAAM,CAACC,cAAc,CAAC,IAAI,EAAE,SAAS,EAAEf,UAAU,CAAC;EAClDY,KAAK,CAACI,iBAAiB,CAAC,IAAI,EAAEX,WAAW,CAAC;EAC1C,IAAI,CAACE,IAAI,GAAGA,IAAI;EAChB,IAAI,CAACC,OAAO,GAAGA,OAAO;AAC9B;AACAM,MAAM,CAACG,cAAc,CAACZ,WAAW,EAAEO,KAAK,CAAC;AACzCE,MAAM,CAACG,cAAc,CAACZ,WAAW,CAACa,SAAS,EAAEN,KAAK,CAACM,SAAS,CAAC;AAC7DJ,MAAM,CAACC,cAAc,CAACV,WAAW,CAACa,SAAS,EAAE,MAAM,EAAElB,UAAU,CAAC;AAChEmB,MAAM,CAACC,OAAO,GAAGf,WAAW","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|