Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unleash/client-specification

Package Overview
Dependencies
Maintainers
6
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unleash/client-specification - npm Package Compare versions

Comparing version 4.3.3 to 4.4.0

2

package.json
{
"name": "@unleash/client-specification",
"version": "4.3.3",
"version": "4.4.0",
"description": "A collection of test specifications to guide client implementations in various languages",

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

@@ -208,2 +208,23 @@ {

]
},
{
"name": "Feature.Variants.H",
"description": "variant with numeric payload",
"enabled": true,
"strategies": [
{
"name": "default",
"parameters": {}
}
],
"variants": [
{
"name": "variant1",
"weight": 1,
"payload": {
"type": "number",
"value": "1.2"
}
}
]
}

@@ -434,4 +455,19 @@ ]

}
},
{
"description": "Feature.Variants.H should return variant1 with numeric type payload",
"context": {
"userId": "0"
},
"toggleName": "Feature.Variants.H",
"expectedResult": {
"name": "variant1",
"payload": {
"type": "number",
"value": "1.2"
},
"enabled": true
}
}
]
}

@@ -162,4 +162,38 @@ {

]
},
{
"name": "Feature.strategy.numeric.variants",
"description": "Strategy variants with numeric payload",
"enabled": true,
"strategies": [
{
"name": "flexibleRollout",
"parameters": {
"rollout": "100",
"stickiness": "default",
"groupId": "a"
},
"variants": [
{
"name": "variantNameA",
"weight": 1,
"payload": {
"type": "number",
"value": "1.2"
}
},
{
"name": "variantNameB",
"weight": 1,
"payload": {
"type": "number",
"value": "1"
}
}
],
"constraints": []
}
],
"variants": []
}
]

@@ -260,4 +294,19 @@ },

}
},
{
"description": "Feature.strategy.numeric.variants should choose second variant",
"context": {
"userId": "0"
},
"toggleName": "Feature.strategy.numeric.variants",
"expectedResult": {
"name": "variantNameB",
"payload": {
"type": "number",
"value": "1"
},
"enabled": true
}
}
]
}
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