> npm dist-tag
latest: 1.3.0
next: 1.3.0
// start on feature - create a branch, edit code commit
// Time to release the 'pre release'
> npm version premajor
v2.0.0–0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated | |
authorization { | |
ADMIN = { | |
publish = ">" | |
subscribe = ">" | |
} | |
PUB = { | |
publish = "foo" | |
} | |
SUB = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nc = require('nats').connect(); | |
nc.on('error', function(err) { | |
console.log(err); | |
}); | |
nc.subscribe(">", function(msg, reply, subject, subID) { | |
console.log("msg: [" + msg + "] reply: [" + reply + "] subject: [" + subject + "] subID: [" + subID + "]"); | |
}); | |
nc.flush(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var NATS = require('../'); | |
var nc = NATS.connect({maxReconnectAttempts: -1}); | |
nc.on('error', function(e) { | |
console.error(e); | |
process.exit(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[5170:1]% terraform apply | |
An execution plan has been generated and is shown below. | |
Resource actions are indicated with the following symbols: | |
+ create | |
Terraform will perform the following actions: | |
+ aws_autoscaling_group.ngs-east-cluster | |
id: <computed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const NATS = require('nats'); | |
const nkeys = require('ts-nkeys'); | |
// private key | |
var priv = nkeys.fromSeed("SUAFY3TGVXJBM5A4CLH7OE4P4N25KHLMF6BQLPJKMV5K6MIZAVVAS4JXAQ"); | |
var ah = {}; | |
ah.sign = function(data) { | |
return priv.sign(data); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* | |
* Copyright 2013-2019 The NATS Authors | |
* Licensed 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "pub.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen: "localhost:4222" | |
cluster: { | |
listen: "localhost:4333" | |
} | |
streaming: { | |
store: "file" | |
dir: "/tmp/stan-cluster/data" | |
ft_group: "ft" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { createUser, fromSeed } = require("nkeys.js"); | |
const te = new TextEncoder(); | |
const seed = "SAAGNKC24HXG5TD5XKKSWSVFRRKYQGZXF5LCTNXNNWCHO6C4WX3OTDQQNU"; | |
const a = fromSeed(te.encode(seed)); | |
const aid = a.getPublicKey(); | |
const u = createUser(); | |
const uid = u.getPublicKey(); |
OlderNewer