Socket
Socket
Sign inDemoInstall

api-test

Package Overview
Dependencies
82
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.7.0 to 3.0.0

10

classes/Obj.js

@@ -139,4 +139,4 @@ 'use strict'

if (!this.lines.length || (this.lines[0][0] !== '*' && this.lines[0][0] !== '-')) {
// An array must start with a '*' or '-'
if (!this.lines.length || (this.lines[0][0] !== '*' && this.lines[0][0] !== '@')) {
// An array must start with a '*' or '@'
return false

@@ -150,3 +150,3 @@ }

line = this.lines[i]
if (line[0] === '*' || line[0] === '-') {
if (line[0] === '*' || line[0] === '@') {
// A new element

@@ -166,3 +166,3 @@ if (line[1] !== '\t') {

} else if (this.value.isOrdered !== (line[0] === '*')) {
throw new ParseError('Either all elements start with "*" or "-"', this)
throw new ParseError('Either all elements start with "*" or "@"', this)
}

@@ -173,3 +173,3 @@ } else if (line[0] === '\t') {

} else {
throw new ParseError('Expected either "*", "-" or "\\t"', this)
throw new ParseError('Expected either "*", "@" or "\\t"', this)
}

@@ -176,0 +176,0 @@ }

@@ -55,5 +55,5 @@ # Doc Syntax

set:
- 3
- 14
- 15
@ 3
@ 14
@ 15
matches `[15, 3, 14]`.

@@ -60,0 +60,0 @@

{
"name": "api-test",
"version": "2.7.0",
"version": "3.0.0",
"author": "Sitegui <sitegui@sitegui.com.br>",

@@ -5,0 +5,0 @@ "description": "API testing made simple",

@@ -107,5 +107,5 @@ /*globals describe, it*/

check([
'- 92',
'- 65',
'- 35'
'@ 92',
'@ 65',
'@ 35'
], array([92, 65, 35], false))

@@ -132,4 +132,4 @@ })

check([
'* - 1',
' - 2',
'* @ 1',
' @ 2',
'* * 3',

@@ -136,0 +136,0 @@ ' * 4'

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc