New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

functionalscript

Package Overview
Dependencies
Maintainers
0
Versions
452
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

functionalscript - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

2

com/test/build.ts

@@ -10,3 +10,3 @@ import { writeFileSync } from 'node:fs'

import * as sgr from '../../text/sgr/module.f.ts'
const { bold, reset } = sgr.codes
const { bold, reset } = sgr
import * as list from '../../types/list/module.f.ts'

@@ -13,0 +13,0 @@

{
"name": "@functionalscript/functionalscript",
"version": "0.3.3",
"version": "0.3.4",
"license": "AGPL-3.0-only",

@@ -5,0 +5,0 @@ "exports": {

@@ -91,3 +91,2 @@ import { existsSync } from 'node:fs'

) {
console.log(file)
const source = await import(`../${file}`)

@@ -94,0 +93,0 @@ map.push([file, source.default])

import * as list from '../../types/list/module.f.ts'
const { fold } = list
import * as sgr from '../../text/sgr/module.f.ts'
const { reset, fgGreen, fgRed, bold } = sgr.codes
import * as codes from '../../text/sgr/module.f.ts'
const { reset, fgGreen, fgRed, bold } = codes
import * as Result from '../../types/result/module.f.ts'

@@ -6,0 +6,0 @@

@@ -70,3 +70,3 @@ import * as operator from '../../types/function/operator/module.f.ts'

dollarSign
} = ascii.ascii
} = ascii

@@ -73,0 +73,0 @@ export type StringToken = {

{
"name": "functionalscript",
"version": "0.3.3",
"version": "0.3.4",
"type": "module",

@@ -5,0 +5,0 @@ "description": "FunctionalScript is a functional subset of JavaScript",

@@ -1,2 +0,2 @@

import * as _range from '../../types/range/module.f.ts'
import { type Range } from '../../types/range/module.f.ts'

@@ -11,8 +11,6 @@ const at

export const one
: (s: string) => number
= s => at(s)(0)
export const one = (s: string): number => at(s)(0)
export const range
: (s: string) => _range.Range
: (s: string) => Range
= s => {

@@ -25,200 +23,199 @@ const f = at(s)

export const ascii = {
// 0x00..
// 0x00..
/** @readonly 0x08 */
backspace: one('\b'),
/** 0x08 */
export const backspace: number = one('\b')
/** @readonly 0x09 */
ht: one('\t'),
/** 0x09 */
export const ht: number = one('\t')
/** @readonly 0x0A */
lf: one('\n'),
/** 0x0A */
export const lf: number = one('\n')
/** @readonly 0x0C */
ff: one('\f'),
/** @readonly 0x0D */
cr: one('\r'),
/** 0x0C */
export const ff: number = one('\f')
// 0x20..
/** 0x0D */
export const cr: number = one('\r')
/** @readonly 0x20 */
space: one(' '),
// 0x20..
/** @readonly 0x21 */
exclamationMark: one('!'),
/** 0x20 */
export const space: number = one(' ')
/** @readonly 0x22 */
quotationMark: one('"'),
/** 0x21 */
export const exclamationMark: number = one('!')
/** @readonly 0x23 */
numberSign: one('#'),
/** 0x22 */
export const quotationMark: number = one('"')
/** @readonly 0x24 */
dollarSign: one('$'),
/** 0x23 */
export const numberSign: number = one('#')
/** @readonly 0x25 */
percentSign: one('%'),
/** 0x24 */
export const dollarSign: number = one('$')
/** @readonly 0x26 */
ampersand: one('&'),
/** 0x25 */
export const percentSign: number = one('%')
/** @readonly 0x27 */
apostrophe: one("'"),
/** 0x26 */
export const ampersand: number = one('&')
/** @readonly 0x28 */
leftParenthesis: one('('),
/** 0x27 */
export const apostrophe: number = one("'")
/** @readonly 0x29 */
rightParenthesis: one(')'),
/** 0x28 */
export const leftParenthesis: number = one('(')
/** @readonly 0x2A */
asterisk: one('*'),
/** 0x29 */
export const rightParenthesis: number = one(')')
/** @readonly 0x2B */
plusSign: one('+'),
/** 0x2A */
export const asterisk: number = one('*')
/** @readonly 0x2C */
comma: one(','),
/** 0x2B */
export const plusSign: number = one('+')
/** @readonly 0x2D */
hyphenMinus: one('-'),
/** 0x2C */
export const comma: number = one(',')
/** @readonly 0x2E */
fullStop: one('.'),
/** 0x2D */
export const hyphenMinus: number = one('-')
/** @readonly 0x2F */
solidus: one('/'),
/** 0x2E */
export const fullStop: number = one('.')
// 0x30..
/** 0x2F */
export const solidus: number = one('/')
/** @readonly 0x30..0x39 */
digitRange: range('09'),
// 0x30..
/** @readonly 0x30 */
digit0: one('0'),
/** 0x30..0x39 */
export const digitRange: Range = range('09')
/** @readonly 0x31 */
digit1: one('1'),
/** 0x30 */
export const digit0: number = one('0')
/** @readonly 0x32 */
digit2: one('2'),
/** 0x31 */
export const digit1: number = one('1')
/** @readonly 0x33 */
digit3: one('3'),
/** 0x32 */
export const digit2: number = one('2')
/** @readonly 0x34 */
digit4: one('4'),
/** 0x33 */
export const digit3: number = one('3')
/** @readonly 0x35 */
digit5: one('5'),
/** 0x34 */
export const digit4: number = one('4')
/** @readonly 0x36 */
digit6: one('6'),
/** 0x35 */
export const digit5: number = one('5')
/** @readonly 0x37 */
digit7: one('7'),
/** 0x36 */
export const digit6: number = one('6')
/** @readonly 0x38 */
digit8: one('8'),
/** 0x37 */
export const digit7: number = one('7')
/** @readonly 0x39 */
digit9: one('9'),
/** 0x38 */
export const digit8: number = one('8')
/** @readonly 0x3A */
colon: one(':'),
/** 0x39 */
export const digit9: number = one('9')
/** @readonly 0x3B */
semicolon: one(';'),
/** 0x3A */
export const colon: number = one(':')
/** @readonly 0x3C */
lessThanSign: one('<'),
/** 0x3B */
export const semicolon: number = one(';')
/** @readonly 0x3D */
equalsSign: one('='),
/** 0x3C */
export const lessThanSign: number = one('<')
/** @readonly 0x3E */
greaterThanSign: one('>'),
/** 0x3D */
export const equalsSign: number = one('=')
/** @readonly 0x3F */
questionMark: one('?'),
/** 0x3E */
export const greaterThanSign: number = one('>')
// 0x40..
/** 0x3F */
export const questionMark: number = one('?')
/** @readonly 0x40 */
commercialAt: one('@'),
// 0x40..
/** @readonly 0x41..0x5A */
latinCapitalLetterRange: range('AZ'),
/** 0x40 */
export const commercialAt: number = one('@')
/** @readonly 0x41 */
latinCapitalLetterA: one('A'),
/** 0x41..0x5A */
export const latinCapitalLetterRange: Range = range('AZ')
/** @readonly 0x45 */
latinCapitalLetterE: one('E'),
/** 0x41 */
export const latinCapitalLetterA: number = one('A')
/** @readonly 0x46 */
latinCapitalLetterF: one('F'),
/** 0x45 */
export const latinCapitalLetterE: number = one('E')
/** @readonly 0x5B */
leftSquareBracket: one('['),
/** 0x46 */
export const latinCapitalLetterF: number = one('F')
/** @readonly 0x5C */
reverseSolidus: one('\\'),
/** 0x5B */
export const leftSquareBracket: number = one('[')
/** @readonly 0x5D */
rightSquareBracket: one(']'),
/** 0x5C */
export const reverseSolidus: number = one('\\')
/** @readonly 0x5E */
circumflexAccent: one('^'),
/** 0x5D */
export const rightSquareBracket: number = one(']')
/** @readonly 0x5F */
lowLine: one('_'),
/** 0x5E */
export const circumflexAccent: number = one('^')
// 0x60..
/** 0x5F */
export const lowLine: number = one('_')
/** @readonly 0x60 */
graveAccent: one('`'),
// 0x60..
/** @readonly 0x61..0x7A */
latinSmallLetterRange: range('az'),
/** 0x60 */
export const graveAccent: number = one('`')
/** @readonly 0x61 */
latinSmallLetterA: one('a'),
/** 0x61..0x7A */
export const latinSmallLetterRange: Range = range('az')
/** @readonly 0x62 */
latinSmallLetterB: one('b'),
/** 0x61 */
export const latinSmallLetterA: number = one('a')
/** @readonly 0x65 */
latinSmallLetterE: one('e'),
/** 0x62 */
export const latinSmallLetterB: number = one('b')
/** @readonly 0x66 */
latinSmallLetterF: one('f'),
/** 0x65 */
export const latinSmallLetterE: number = one('e')
/** @readonly 0x6E */
latinSmallLetterN: one('n'),
/** 0x66 */
export const latinSmallLetterF: number = one('f')
/** @readonly 0x72 */
latinSmallLetterR: one('r'),
/** 0x6E */
export const latinSmallLetterN: number = one('n')
/** @readonly 0x74 */
latinSmallLetterT: one('t'),
/** 0x72 */
export const latinSmallLetterR: number = one('r')
/** @readonly 0x75 */
latinSmallLetterU: one('u'),
/** 0x74 */
export const latinSmallLetterT: number = one('t')
/** @readonly 0x7A */
latinSmallLetterZ: one('z'),
/** 0x75 */
export const latinSmallLetterU: number = one('u')
/** @readonly 0x7B */
leftCurlyBracket: one('{'),
/** 0x7A */
export const latinSmallLetterZ: number = one('z')
/** @readonly 0x7C */
verticalLine: one('|'),
/** 0x7B */
export const leftCurlyBracket: number = one('{')
/** @readonly 0x7D */
rightCurlyBracket: one('}'),
/** 0x7C */
export const verticalLine: number = one('|')
/** @readonly 0x7E */
tilde: one('~'),
}
/** 0x7D */
export const rightCurlyBracket: number = one('}')
/** 0x7E */
export const tilde: number = one('~')

@@ -5,10 +5,8 @@ /**

export const sgr
: (c: number) => string
= c => `\x1b[${c.toString()}m`
: (c: number) => string
= c => `\x1b[${c.toString()}m`
export const codes = {
reset: sgr(0),
bold: sgr(1),
fgRed: sgr(31),
fgGreen: sgr(32),
}
export const reset: string = sgr(0)
export const bold: string = sgr(1)
export const fgRed: string = sgr(31)
export const fgGreen: string = sgr(32)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc