download
raw
443 Bytes
'use strict'
const { test } = require('node:test')
const build = require('..')
test('sanitize 6', t => {
const payload = '(throw "pwoned")'
const stringify = build({
type: 'object',
properties: {
'/*': { type: 'object' },
x: {
type: 'object',
properties: {
a: { type: 'string', default: `*/}${payload};{//` }
}
}
}
})
t.assert.doesNotThrow(() => { stringify({}) })
})

Xet Storage Details

Size:
443 Bytes
·
Xet hash:
7616280f3c54eca271cc8f6fd095608e0243783d7edcfe7e2f2cffaf3d31103e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.