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

raml-suggestions

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raml-suggestions - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

raml-suggestions/raml-suggestions.js

26

dist/test/asyncCompletionTests.js

@@ -67,5 +67,6 @@ /// <reference path="../../typings/main.d.ts" />

//this test contains impossible suggestions
it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function (done) {
testCompletionByEntryEnd('basic/test10.raml', done, '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3');
});
//Commented out invalid test
// it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function (done) {
// testCompletionByEntryEnd('basic/test10.raml', done, '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3');
// });
//this test contains impossible suggestions

@@ -126,3 +127,3 @@ it("User-defined types reference completion for a property inheritance definition. BUG#2612 #2611. FIXME", function (done) {

it("Completion for include path", function (done) {
testCompletionByEntryEnd('basic/test17.raml', done, '\n comic: !include ./XKCD/s', 'schemas');
testCompletionByEntryEnd('basic/test17.raml', done, '\n comic: !include ./XKCD/s', 'schemas/');
});

@@ -449,4 +450,19 @@ it("Completion for include files", function (done) {

it("test43", function (done) {
testCompletionByEntryEnd('basic/test43.raml', done, 'X', 'XKCD');
testCompletionByEntryEnd('basic/test43.raml', done, 'X', 'XKCD/');
});
it("Overlay extends property", function (done) {
testCompletionByEntryEnd('basic/OverlaysAndExtension/overlay.raml', done, 'extends: a', 'api.raml');
});
it("Extension extends property", function (done) {
testCompletionByEntryEnd('basic/OverlaysAndExtension/extension.raml', done, 'extends: a', 'api.raml');
});
it("test55", function (done) {
testCompletionByEntryEnd('basic/test55.raml', done, 'discriminator: l', 'level');
});
it("test56", function (done) {
testCompletionByEntryEnd('basic/test56.raml', done, 'application/', 'application/json, application/xml');
});
it("test57", function (done) {
testCompletionByEntryEnd('basic/test57.raml', done, 'ty', 'type');
});
});

@@ -453,0 +469,0 @@ function testCompletionByEntryStart(testPath, done, entry, expected) {

28

dist/test/completionTests.js

@@ -69,5 +69,6 @@ /// <reference path="../../typings/main.d.ts" />

//this test contains impossible suggestions
it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function () {
testCompletionByEntryEnd('basic/test10.raml', '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3');
});
//Commented out invalid test
// it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function () {
// testCompletionByEntryEnd('basic/test10.raml', '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3');
// });
//this test contains impossible suggestions

@@ -127,3 +128,3 @@ it("User-defined types reference completion for a property inheritance definition. BUG#2612 #2611. FIXME", function () {

it("Completion for include path", function () {
testCompletionByEntryEnd('basic/test17.raml', '\n comic: !include ./XKCD/s', 'schemas');
testCompletionByEntryEnd('basic/test17.raml', '\n comic: !include ./XKCD/s', 'schemas/');
});

@@ -450,3 +451,3 @@ it("Completion for include files", function () {

it("test43", function () {
testCompletionByEntryEnd('basic/test43.raml', 'X', 'XKCD');
testCompletionByEntryEnd('basic/test43.raml', 'X', 'XKCD/');
});

@@ -475,3 +476,3 @@ it("Reference completion for a property definition", function () {

it("Include folders names", function () {
testCompletionByEntryStart('basic/test44.raml', 'chemas/comic-schema.json', 'schemas');
testCompletionByEntryStart('basic/test44.raml', 'chemas/comic-schema.json', 'schemas/');
});

@@ -670,2 +671,17 @@ it("Include file name", function () {

});
it("Overlay extends property", function () {
testCompletionByEntryEnd('basic/OverlaysAndExtension/overlay.raml', 'extends: a', 'api.raml');
});
it("Extension extends property", function () {
testCompletionByEntryEnd('basic/OverlaysAndExtension/extension.raml', 'extends: a', 'api.raml');
});
it("test55", function () {
testCompletionByEntryEnd('basic/test55.raml', 'discriminator: l', 'level');
});
it("test56", function () {
testCompletionByEntryEnd('basic/test56.raml', 'application/', 'application/json, application/xml');
});
it("test57", function () {
testCompletionByEntryEnd('basic/test57.raml', 'ty', 'type');
});
});

@@ -672,0 +688,0 @@ function testCompletionByEntryStart(testPath, entry, expected) {

{
"name": "raml-suggestions",
"version": "0.0.35",
"version": "0.0.36",
"main": "dist/index.js",

@@ -22,3 +22,3 @@ "scripts": {

"underscore": "^1.8.3",
"raml-1-parser": "1.1.26",
"raml-1-parser": "1.1.28",
"fuzzaldrin-plus": "^0.3.1"

@@ -25,0 +25,0 @@ },

@@ -87,5 +87,6 @@ /// <reference path="../../typings/main.d.ts" />

//this test contains impossible suggestions
it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function (done) {
testCompletionByEntryEnd('basic/test10.raml', done, '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3');
});
//Commented out invalid test
// it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function (done) {
// testCompletionByEntryEnd('basic/test10.raml', done, '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3');
// });

@@ -163,3 +164,3 @@ //this test contains impossible suggestions

it("Completion for include path", function (done) {
testCompletionByEntryEnd('basic/test17.raml', done, '\n comic: !include ./XKCD/s', 'schemas');
testCompletionByEntryEnd('basic/test17.raml', done, '\n comic: !include ./XKCD/s', 'schemas/');
});

@@ -592,4 +593,24 @@

it("test43", function (done) {
testCompletionByEntryEnd('basic/test43.raml', done, 'X', 'XKCD');
testCompletionByEntryEnd('basic/test43.raml', done, 'X', 'XKCD/');
});
it("Overlay extends property", function (done) {
testCompletionByEntryEnd('basic/OverlaysAndExtension/overlay.raml', done, 'extends: a', 'api.raml');
});
it("Extension extends property", function (done) {
testCompletionByEntryEnd('basic/OverlaysAndExtension/extension.raml', done, 'extends: a', 'api.raml');
});
it("test55", function (done) {
testCompletionByEntryEnd('basic/test55.raml', done, 'discriminator: l', 'level');
});
it("test56", function (done) {
testCompletionByEntryEnd('basic/test56.raml', done, 'application/', 'application/json, application/xml');
});
it("test57", function (done) {
testCompletionByEntryEnd('basic/test57.raml', done, 'ty', 'type');
});
});

@@ -596,0 +617,0 @@

@@ -90,5 +90,6 @@ /// <reference path="../../typings/main.d.ts" />

//this test contains impossible suggestions
it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function () {
testCompletionByEntryEnd('basic/test10.raml', '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3');
});
//Commented out invalid test
// it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function () {
// testCompletionByEntryEnd('basic/test10.raml', '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3');
// });

@@ -165,3 +166,3 @@ //this test contains impossible suggestions

it("Completion for include path", function () {
testCompletionByEntryEnd('basic/test17.raml', '\n comic: !include ./XKCD/s', 'schemas');
testCompletionByEntryEnd('basic/test17.raml', '\n comic: !include ./XKCD/s', 'schemas/');
});

@@ -594,3 +595,3 @@

it("test43", function () {
testCompletionByEntryEnd('basic/test43.raml', 'X', 'XKCD');
testCompletionByEntryEnd('basic/test43.raml', 'X', 'XKCD/');
});

@@ -627,3 +628,3 @@

it("Include folders names", function () {
testCompletionByEntryStart('basic/test44.raml', 'chemas/comic-schema.json', 'schemas');
testCompletionByEntryStart('basic/test44.raml', 'chemas/comic-schema.json', 'schemas/');
});

@@ -886,2 +887,22 @@

});
it("Overlay extends property", function () {
testCompletionByEntryEnd('basic/OverlaysAndExtension/overlay.raml', 'extends: a', 'api.raml');
});
it("Extension extends property", function () {
testCompletionByEntryEnd('basic/OverlaysAndExtension/extension.raml', 'extends: a', 'api.raml');
});
it("test55", function () {
testCompletionByEntryEnd('basic/test55.raml', 'discriminator: l', 'level');
});
it("test56", function () {
testCompletionByEntryEnd('basic/test56.raml', 'application/', 'application/json, application/xml');
});
it("test57", function () {
testCompletionByEntryEnd('basic/test57.raml', 'ty', 'type');
});
});

@@ -888,0 +909,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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