@vertx/core
Advanced tools
Comparing version 3.5.4 to 3.6.0
@@ -1,8 +0,85 @@ | ||
export enum ClientAuth { NONE, REQUEST, REQUIRED } | ||
export enum DnsResponseCode { NOERROR, FORMERROR, SERVFAIL, NXDOMAIN, NOTIMPL, REFUSED, YXDOMAIN, YXRRSET, NXRRSET, NOTAUTH, NOTZONE, BADVERS, BADSIG, BADKEY, BADTIME } | ||
export enum HttpMethod { OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, PATCH, OTHER } | ||
export enum HttpVersion { HTTP_1_0, HTTP_1_1, HTTP_2 } | ||
export enum JsonEventType { START_OBJECT, END_OBJECT, START_ARRAY, END_ARRAY, VALUE } | ||
export enum ProxyType { HTTP, SOCKS4, SOCKS5 } | ||
export enum ReplyFailure { TIMEOUT, NO_HANDLERS, RECIPIENT_FAILURE } | ||
export enum WebsocketVersion { V00, V07, V08, V13 } | ||
/* | ||
* Copyright 2018 ES4X | ||
* | ||
* ES4X licenses this file to you under the Apache License, version 2.0 | ||
* (the "License"); you may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
export enum ClientAuth { | ||
NONE, | ||
REQUEST, | ||
REQUIRED | ||
} | ||
export enum DnsResponseCode { | ||
NOERROR, | ||
FORMERROR, | ||
SERVFAIL, | ||
NXDOMAIN, | ||
NOTIMPL, | ||
REFUSED, | ||
YXDOMAIN, | ||
YXRRSET, | ||
NXRRSET, | ||
NOTAUTH, | ||
NOTZONE, | ||
BADVERS, | ||
BADSIG, | ||
BADKEY, | ||
BADTIME | ||
} | ||
export enum HttpMethod { | ||
OPTIONS, | ||
GET, | ||
HEAD, | ||
POST, | ||
PUT, | ||
DELETE, | ||
TRACE, | ||
CONNECT, | ||
PATCH, | ||
OTHER | ||
} | ||
export enum HttpVersion { | ||
HTTP_1_0, | ||
HTTP_1_1, | ||
HTTP_2 | ||
} | ||
export enum JsonEventType { | ||
START_OBJECT, | ||
END_OBJECT, | ||
START_ARRAY, | ||
END_ARRAY, | ||
VALUE | ||
} | ||
export enum ProxyType { | ||
HTTP, | ||
SOCKS4, | ||
SOCKS5 | ||
} | ||
export enum ReplyFailure { | ||
TIMEOUT, | ||
NO_HANDLERS, | ||
RECIPIENT_FAILURE | ||
} | ||
export enum WebsocketVersion { | ||
V00, | ||
V07, | ||
V08, | ||
V13 | ||
} |
16
enums.js
@@ -0,1 +1,17 @@ | ||
/* | ||
* Copyright 2018 ES4X | ||
* | ||
* ES4X licenses this file to you under the Apache License, version 2.0 | ||
* (the "License"); you may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
/// <reference types="@vertx/core/enums" /> | ||
@@ -2,0 +18,0 @@ module.exports = { |
25
index.js
@@ -0,1 +1,17 @@ | ||
/* | ||
* Copyright 2018 ES4X | ||
* | ||
* ES4X licenses this file to you under the Apache License, version 2.0 | ||
* (the "License"); you may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
/// <reference types="@vertx/core" /> | ||
@@ -14,2 +30,3 @@ module.exports = { | ||
DatagramSocket: Java.type('io.vertx.core.datagram.DatagramSocket'), | ||
DeliveryContext: Java.type('io.vertx.core.eventbus.DeliveryContext'), | ||
DnsClient: Java.type('io.vertx.core.dns.DnsClient'), | ||
@@ -34,2 +51,3 @@ EventBus: Java.type('io.vertx.core.eventbus.EventBus'), | ||
Lock: Java.type('io.vertx.core.shareddata.Lock'), | ||
Measured: Java.type('io.vertx.core.metrics.Measured'), | ||
Message: Java.type('io.vertx.core.eventbus.Message'), | ||
@@ -44,5 +62,5 @@ MessageConsumer: Java.type('io.vertx.core.eventbus.MessageConsumer'), | ||
Pump: Java.type('io.vertx.core.streams.Pump'), | ||
ReadStream: Java.type('io.vertx.core.streams.ReadStream'), | ||
RecordParser: Java.type('io.vertx.core.parsetools.RecordParser'), | ||
SelfSignedCertificate: Java.type('io.vertx.core.net.SelfSignedCertificate'), | ||
SendContext: Java.type('io.vertx.core.eventbus.SendContext'), | ||
ServerWebSocket: Java.type('io.vertx.core.http.ServerWebSocket'), | ||
@@ -52,7 +70,10 @@ SharedData: Java.type('io.vertx.core.shareddata.SharedData'), | ||
SrvRecord: Java.type('io.vertx.core.dns.SrvRecord'), | ||
StreamBase: Java.type('io.vertx.core.streams.StreamBase'), | ||
TimeoutStream: Java.type('io.vertx.core.TimeoutStream'), | ||
Vertx: Java.type('io.vertx.core.Vertx'), | ||
WebSocket: Java.type('io.vertx.core.http.WebSocket'), | ||
WebSocketBase: Java.type('io.vertx.core.http.WebSocketBase'), | ||
WebSocketFrame: Java.type('io.vertx.core.http.WebSocketFrame'), | ||
WorkerExecutor: Java.type('io.vertx.core.WorkerExecutor') | ||
WorkerExecutor: Java.type('io.vertx.core.WorkerExecutor'), | ||
WriteStream: Java.type('io.vertx.core.streams.WriteStream') | ||
}; |
@@ -0,1 +1,17 @@ | ||
/* | ||
* Copyright 2018 ES4X | ||
* | ||
* ES4X licenses this file to you under the Apache License, version 2.0 | ||
* (the "License"); you may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
/// <reference types="@vertx/core/options" /> | ||
@@ -5,2 +21,3 @@ module.exports = { | ||
Argument: Java.type('io.vertx.core.cli.Argument'), | ||
ClientOptionsBase: Java.type('io.vertx.core.net.ClientOptionsBase'), | ||
CopyOptions: Java.type('io.vertx.core.file.CopyOptions'), | ||
@@ -12,2 +29,3 @@ DatagramSocketOptions: Java.type('io.vertx.core.datagram.DatagramSocketOptions'), | ||
EventBusOptions: Java.type('io.vertx.core.eventbus.EventBusOptions'), | ||
FileSystemOptions: Java.type('io.vertx.core.file.FileSystemOptions'), | ||
GoAway: Java.type('io.vertx.core.http.GoAway'), | ||
@@ -22,2 +40,3 @@ Http2Settings: Java.type('io.vertx.core.http.Http2Settings'), | ||
NetServerOptions: Java.type('io.vertx.core.net.NetServerOptions'), | ||
NetworkOptions: Java.type('io.vertx.core.net.NetworkOptions'), | ||
OpenOptions: Java.type('io.vertx.core.file.OpenOptions'), | ||
@@ -31,3 +50,5 @@ OpenSSLEngineOptions: Java.type('io.vertx.core.net.OpenSSLEngineOptions'), | ||
RequestOptions: Java.type('io.vertx.core.http.RequestOptions'), | ||
StreamPriority: Java.type('io.vertx.core.http.StreamPriority'), | ||
TCPSSLOptions: Java.type('io.vertx.core.net.TCPSSLOptions'), | ||
VertxOptions: Java.type('io.vertx.core.VertxOptions') | ||
}; |
{ | ||
"description" : "Generated Eclipse Vert.x bindings for 'vertx-core'", | ||
"version" : "3.5.4", | ||
"version" : "3.6.0", | ||
"license" : "Apache Software License 2.0", | ||
@@ -8,7 +8,8 @@ "maven" : { | ||
"artifactId" : "vertx-core", | ||
"version" : "3.5.4" | ||
"version" : "3.6.0" | ||
}, | ||
"name" : "@vertx/core", | ||
"main" : "index.js", | ||
"types" : "index.d.ts" | ||
} | ||
"types" : "index.d.ts", | ||
"sideEffects" : false | ||
} |
157
runtime.d.ts
@@ -1,87 +0,92 @@ | ||
import { Vertx } from './index'; | ||
import {Vertx} from './index'; | ||
declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): Number; | ||
declare function clearTimeout(timeoutId: Number): any; | ||
declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): Number; | ||
declare function clearInterval(intervalId: Number): any; | ||
declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): any; | ||
// The globally defined objects that are provided by the loader runtime | ||
declare global { | ||
declare const require: { | ||
(id: string): any; | ||
resolve(): string; | ||
cache: any; | ||
extensions: any; | ||
}; | ||
const vertx: Vertx; | ||
declare const Java: { | ||
/** | ||
* The type function loads the specified Java class and provides it as an object. | ||
* | ||
* Fields of this object can be read directly from it, and new instances can be created with the | ||
* JavaScript new keyword. | ||
* | ||
* @param className | ||
*/ | ||
type(className: string): any; | ||
const require: { | ||
(id: string): any; | ||
resolve(): string; | ||
cache: any; | ||
extensions: any; | ||
}; | ||
/** | ||
* The from function creates a shallow copy of the Java datastructure (Array, List) as a JavaScript array. | ||
* | ||
* In many cases, this is not necessary, you can typically use the Java datastructure directly | ||
* from JavaScript. | ||
* | ||
* @param value | ||
*/ | ||
from(value: any): any; | ||
const process: { | ||
env: { [key: string]: string }; | ||
pid: String; | ||
engine: String; | ||
exit: (exitCode: Number) => void; | ||
nextTick: (callback: (...args: any[]) => void) => void; | ||
stdout: any; | ||
stderr: any; | ||
stdin: any; | ||
}; | ||
/** | ||
* The to function converts the argument to a Java dataype. | ||
* | ||
* When no toType is provided, Object[] is assumed. | ||
* | ||
* @param jsValue | ||
* @param javaType | ||
*/ | ||
to(jsValue: any, javaType: any): any; | ||
const Java: { | ||
/** | ||
* The type function loads the specified Java class and provides it as an object. | ||
* | ||
* Fields of this object can be read directly from it, and new instances can be created with the | ||
* JavaScript new keyword. | ||
* | ||
* @param className | ||
*/ | ||
type(className: string): any; | ||
/** | ||
* The isJavaObject method returns whether obj is an object of the Java language. | ||
* | ||
* It returns false for native JavaScript objects, as well as for objects of other polyglot languages. | ||
* | ||
* @param obj | ||
*/ | ||
isJavaObject(obj: any): boolean; | ||
/** | ||
* The from function creates a shallow copy of the Java datastructure (Array, List) as a JavaScript array. | ||
* | ||
* In many cases, this is not necessary, you can typically use the Java datastructure directly | ||
* from JavaScript. | ||
* | ||
* @param value | ||
*/ | ||
from(value: any): any; | ||
/** | ||
* The isType method returns whether obj is an object of the Java language, | ||
* representing a Java Class instance. It returns false for all other arguments. | ||
* | ||
* @param obj | ||
*/ | ||
isType(obj: any): boolean; | ||
/** | ||
* The to function converts the argument to a Java dataype. | ||
* | ||
* When no toType is provided, Object[] is assumed. | ||
* | ||
* @param jsValue | ||
* @param javaType | ||
*/ | ||
to(jsValue: any, javaType: any): any; | ||
/** | ||
* The typeName method returns the Java Class name of obj. obj is expected to represent | ||
* a Java Class instance, i.e., isType(obj) should return true; otherwise, undefined is returned. | ||
* | ||
* @param obj | ||
*/ | ||
typeName(obj: any): string | undefined; | ||
}; | ||
/** | ||
* The isJavaObject method returns whether obj is an object of the Java language. | ||
* | ||
* It returns false for native JavaScript objects, as well as for objects of other polyglot languages. | ||
* | ||
* @param obj | ||
*/ | ||
isJavaObject(obj: any): boolean; | ||
declare const process: { | ||
env: { [key:string]: string }; | ||
pid: String; | ||
engine: String; | ||
exit: (exitCode: Number) => void; | ||
nextTick: (callback: (...args: any[]) => void) => void; | ||
stdout: any; | ||
stderr: any; | ||
stdin: any; | ||
}; | ||
/** | ||
* The isType method returns whether obj is an object of the Java language, | ||
* representing a Java Class instance. It returns false for all other arguments. | ||
* | ||
* @param obj | ||
*/ | ||
isType(obj: any): boolean; | ||
// The globally defined objects that are provided by the loader runtime | ||
declare global { | ||
const vertx : Vertx; | ||
/** | ||
* The typeName method returns the Java Class name of obj. obj is expected to represent | ||
* a Java Class instance, i.e., isType(obj) should return true; otherwise, undefined is returned. | ||
* | ||
* @param obj | ||
*/ | ||
typeName(obj: any): string | undefined; | ||
}; | ||
function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): Number; | ||
function clearTimeout(timeoutId: Number): any; | ||
function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): Number; | ||
function clearInterval(intervalId: Number): any; | ||
function setImmediate(callback: (...args: any[]) => void, ...args: any[]): any; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
585254
15078